]> git.saurik.com Git - wxWidgets.git/commitdiff
added operator>>(wchar_t)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2004 12:07:03 +0000 (12:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2004 12:07:03 +0000 (12:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/txtstrm.cpp

index 3643af2ba44805e00f67436219905864e91b24af..0f23ce65ab958454c3d8c742caac9b3528ab1b96 100644 (file)
@@ -252,6 +252,17 @@ wxTextInputStream& wxTextInputStream::operator>>(char& c)
     return *this;
 }
 
     return *this;
 }
 
+#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE
+
+wxTextInputStream& wxTextInputStream::operator>>(wchar_t& wc)
+{
+    wc = GetChar();
+
+    return *this;
+}
+
+#endif // wxUSE_UNICODE
+
 wxTextInputStream& wxTextInputStream::operator>>(wxInt16& i)
 {
     i = (wxInt16)Read16();
 wxTextInputStream& wxTextInputStream::operator>>(wxInt16& i)
 {
     i = (wxInt16)Read16();