[Libreoffice-commits] .: connectivity/source vcl/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Oct 5 01:34:35 PDT 2011
connectivity/source/drivers/evoab2/NDebug.cxx | 5 ++---
connectivity/source/drivers/evoab2/NStatement.cxx | 2 +-
vcl/source/window/window.cxx | 4 ++--
3 files changed, 5 insertions(+), 6 deletions(-)
New commits:
commit ceb199f0bf1f54c15cfb61c29c6ad3b58df8807e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Oct 5 09:34:32 2011 +0100
conversion operator gone now
diff --git a/connectivity/source/drivers/evoab2/NDebug.cxx b/connectivity/source/drivers/evoab2/NDebug.cxx
index 612bb93..7636020 100644
--- a/connectivity/source/drivers/evoab2/NDebug.cxx
+++ b/connectivity/source/drivers/evoab2/NDebug.cxx
@@ -34,9 +34,8 @@
void evo_traceStringMessage( const sal_Char *pFormat,
const ::rtl::OUString& rString )
{
- rtl::OString aStr;
- aStr = ::rtl::OUStringToOString (rString, RTL_TEXTENCODING_UTF8);
- OSL_TRACE(pFormat, (const sal_Char *) aStr );
+ rtl::OString aStr(::rtl::OUStringToOString(rString, RTL_TEXTENCODING_UTF8));
+ OSL_TRACE(pFormat, aStr.getStr());
}
#endif
diff --git a/connectivity/source/drivers/evoab2/NStatement.cxx b/connectivity/source/drivers/evoab2/NStatement.cxx
index c0d9ee3..25a9666 100644
--- a/connectivity/source/drivers/evoab2/NStatement.cxx
+++ b/connectivity/source/drivers/evoab2/NStatement.cxx
@@ -628,7 +628,7 @@ Reference< XResultSet > OCommonStatement::impl_executeQuery_throw( const ::rtl::
#ifdef DEBUG
g_message( "Parse SQL '%s'\n",
- (const sal_Char *)OUStringToOString( _rSql, RTL_TEXTENCODING_UTF8 ) );
+ OUStringToOString(_rSql, RTL_TEXTENCODING_UTF8).getStr() );
#endif
return impl_executeQuery_throw( impl_getEBookQuery_throw( _rSql ) );
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 321daba..debf6e2 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -4360,7 +4360,7 @@ Window::~Window()
RTL_TEXTENCODING_UTF8));
aTempStr.append(RTL_CONSTASCII_STRINGPARAM(
") with living SystemWindow(s) destroyed: "));
- aTempStr.append(aErrorStr);
+ aTempStr.append(aErrorStr.toString());
OSL_FAIL(aTempStr.getStr());
// abort in non-pro version, this must be fixed!
GetpApp()->Abort(rtl::OStringToOUString(
@@ -4383,7 +4383,7 @@ Window::~Window()
rtl::OStringBuffer aTempStr( "Window (" );
aTempStr.append(rtl::OUStringToOString(GetText(), RTL_TEXTENCODING_UTF8));
aTempStr.append(") with living SystemWindow(s) destroyed: ");
- aTempStr.append(aErrorStr);
+ aTempStr.append(aErrorStr.toString());
OSL_FAIL( aTempStr.getStr() );
GetpApp()->Abort(rtl::OStringToOUString(aTempStr.makeStringAndClear(), RTL_TEXTENCODING_UTF8)); // abort in non-pro version, this must be fixed!
}
More information about the Libreoffice-commits
mailing list