From: Vadim Zeitlin Date: Tue, 16 Nov 2004 12:07:03 +0000 (+0000) Subject: added operator>>(wchar_t) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fcbe123e4881886b9f5b78a1482af73ecbe5da6c?ds=sidebyside added operator>>(wchar_t) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 3643af2ba4..0f23ce65ab 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -252,6 +252,17 @@ wxTextInputStream& wxTextInputStream::operator>>(char& c) 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();