From 54f640815e47b2a75e3f53c519575773efae1218 Mon Sep 17 00:00:00 2001 From: Catalin Date: Mon, 22 Jun 2015 14:41:11 +0300 Subject: [PATCH] Use existing helper methods in wxTextInputStream instead of casts. No real changes, just simplify and prettify the code a bit. --- src/common/txtstrm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 09823296da..97fd0c9072 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -307,19 +307,19 @@ wxTextInputStream& wxTextInputStream::operator>>(wchar_t& wc) wxTextInputStream& wxTextInputStream::operator>>(wxInt16& i) { - i = (wxInt16)Read16(); + i = Read16S(); return *this; } wxTextInputStream& wxTextInputStream::operator>>(wxInt32& i) { - i = (wxInt32)Read32(); + i = Read32S(); return *this; } wxTextInputStream& wxTextInputStream::operator>>(wxInt64& i) { - i = (wxInt64)Read64(); + i = Read64S(); return *this; } @@ -517,7 +517,7 @@ wxTextOutputStream& wxTextOutputStream::operator<<(char c) wxTextOutputStream& wxTextOutputStream::operator<<(wchar_t wc) { - WriteString( wxString(&wc, *m_conv, 1) ); + PutChar(wc); return *this; }