]> git.saurik.com Git - wxWidgets.git/commitdiff
Add Shivar's patch for using iostream
authorSylvain Bougnoux <bougnoux@imra-europe.com>
Wed, 16 Feb 2000 09:32:34 +0000 (09:32 +0000)
committerSylvain Bougnoux <bougnoux@imra-europe.com>
Wed, 16 Feb 2000 09:32:34 +0000 (09:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textcmn.cpp

index 5ccdea78f39a0dbdf5922d14fa324220231e166b..d1c0434cc2295d67ad7f222d2de2ca19ae259af7 100644 (file)
 // ----------------------------------------------------------------------------
 
 wxTextCtrlBase::wxTextCtrlBase()
+#if !wxUSE_IOSTREAMH
+    #ifndef NO_TEXT_WINDOW_STREAM
+        :streambuf()
+    #endif //NO_TEXT_WINDOW_STREAM
+#endif //!wxUSE_IOSTREAMH
 {
-#ifndef NO_TEXT_WINDOW_STREAM
-    if (allocate())
-        setp(base(),ebuf());
-#endif // NO_TEXT_WINDOW_STREAM
+#if wxUSE_IOSTREAMH
+    #ifndef NO_TEXT_WINDOW_STREAM
+        if (allocate())
+            setp(base(),ebuf());
+    #endif // NO_TEXT_WINDOW_STREAM
+#endif //wxUSE_IOSTREAMH
 }
 
 // ----------------------------------------------------------------------------