]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
Add go to first/last and plus/minus art provider icons.
[wxWidgets.git] / include / wx / string.h
index cb8d6bccfe0c25df3988e4d3c30d8c6dd1e4e072..95d440a362a8cee9299a4a5c4b3b5412ad1eb585 100644 (file)
@@ -1383,7 +1383,13 @@ public:
     #define wxStringToStdWstringRetType wxStdWideString
     wxStdWideString ToStdWstring() const
     {
+#if wxUSE_UNICODE_WCHAR
+        wxScopedWCharBuffer buf =
+            wxScopedWCharBuffer::CreateNonOwned(m_impl.c_str(), m_impl.length());
+#else // !wxUSE_UNICODE_WCHAR
         wxScopedWCharBuffer buf(wc_str());
+#endif
+
         return wxStdWideString(buf.data(), buf.length());
     }
   #endif