]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix: wxUString uses it's own wxCharTypeBuffer<T> specializations and...
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 10 Aug 2008 20:29:11 +0000 (20:29 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 10 Aug 2008 20:29:11 +0000 (20:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/ustring.cpp

index cb7eb084c437b4a3ed3a618704f7e547eacfbaed..b3176323ee998ecd8885eb23abaa750ea2d8a5ba 100644 (file)
@@ -545,4 +545,16 @@ wxU16CharBuffer wxUString::utf16_str() const
     
     return result;    
 }
-    
+
+
+#if SIZEOF_WCHAR_T != 2
+template<>
+wxCharTypeBuffer<wxChar16>::Data
+wxCharTypeBuffer<wxChar16>::NullData(NULL);
+#endif
+
+#if SIZEOF_WCHAR_T != 4
+template<>
+wxCharTypeBuffer<wxChar32>::Data
+wxCharTypeBuffer<wxChar32>::NullData(NULL);
+#endif