From d3e9a6f3bfcc5e2f017eaa90dd0e45ea87dd459d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 22 Jun 2007 11:12:21 +0000 Subject: [PATCH] have only one string form of operator<< in output streams git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/datstrm.h | 1 - include/wx/txtstrm.h | 1 - src/common/datstrm.cpp | 7 ------- src/common/txtstrm.cpp | 6 ------ 4 files changed, 15 deletions(-) diff --git a/include/wx/datstrm.h b/include/wx/datstrm.h index 2fb430cbf8..ef049c9f2a 100644 --- a/include/wx/datstrm.h +++ b/include/wx/datstrm.h @@ -132,7 +132,6 @@ public: void Write8(const wxUint8 *buffer, size_t size); void WriteDouble(const double *buffer, size_t size); - wxDataOutputStream& operator<<(const wxChar *string); wxDataOutputStream& operator<<(const wxString& string); wxDataOutputStream& operator<<(wxInt8 c); wxDataOutputStream& operator<<(wxInt16 i); diff --git a/include/wx/txtstrm.h b/include/wx/txtstrm.h index 248af2453a..0bcf3e7d2c 100644 --- a/include/wx/txtstrm.h +++ b/include/wx/txtstrm.h @@ -127,7 +127,6 @@ public: wxTextOutputStream& PutChar(wxChar c); - wxTextOutputStream& operator<<(const wxChar *string); wxTextOutputStream& operator<<(const wxString& string); wxTextOutputStream& operator<<(char c); #if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE diff --git a/src/common/datstrm.cpp b/src/common/datstrm.cpp index 50e4eb4b2e..99e9051c03 100644 --- a/src/common/datstrm.cpp +++ b/src/common/datstrm.cpp @@ -650,13 +650,6 @@ void wxDataOutputStream::WriteDouble(const double *buffer, size_t size) } } -wxDataOutputStream& wxDataOutputStream::operator<<(const wxChar *string) -{ - Write32(wxStrlen(string)); - m_output->Write((const char *)string, wxStrlen(string)*sizeof(wxChar)); - return *this; -} - wxDataOutputStream& wxDataOutputStream::operator<<(const wxString& string) { WriteString(string); diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index c933c4b4da..43deb545d3 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -438,12 +438,6 @@ wxTextOutputStream& wxTextOutputStream::PutChar(wxChar c) return *this; } -wxTextOutputStream& wxTextOutputStream::operator<<(const wxChar *string) -{ - WriteString( wxString(string) ); - return *this; -} - wxTextOutputStream& wxTextOutputStream::operator<<(const wxString& string) { WriteString( string ); -- 2.45.2