]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
Fix unit tests compilation in STL build.
[wxWidgets.git] / samples / regtest / regtest.cpp
index cae2f058a95cdc74d73fd14800c56a5abfa2f479..a12d6f28b75773c769f16b3a71372abd4a166290 100644 (file)
@@ -31,7 +31,7 @@
 #include "wx/imaglist.h"
 #include "wx/tokenzr.h"
 
-#if wxUSE_CONFIG_NATIVE && defined( __WXMSW__ )
+#if wxUSE_CONFIG_NATIVE && defined( __WINDOWS__ )
 #   define DO_REGTEST 1
 #else
 #   define DO_REGTEST 0
@@ -1193,7 +1193,7 @@ const wxChar *RegTreeCtrl::TreeNode::FullName() const
         s_strName = Parent()->FullName();
         s_strName << wxT('\\') << m_strName;
 
-        return s_strName;
+        return s_strName.t_str();
     }
 }