From aaca63cc0fae3c83a49328a68c85835dc0c80d4d Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:01:02 +0000 Subject: [PATCH] compatibility with wxWdigets 2.9+: wxString::c_str now returns an object instead of a Char*, use cast to force conversion. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1525 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/cli/text_io_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/text_io_handler.cpp b/src/cli/text_io_handler.cpp index cb4259c2..d1327bb5 100644 --- a/src/cli/text_io_handler.cpp +++ b/src/cli/text_io_handler.cpp @@ -84,7 +84,7 @@ TextIOHandler& TextIOHandler::operator << (const Char* str) { } TextIOHandler& TextIOHandler::operator << (const String& str) { - return *this << str.c_str(); + return *this << static_cast(str.c_str()); } void TextIOHandler::flush() {