From 08f312431ebd5de7f6537fbc534d4276806bb319 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 5 Oct 2011 09:29:02 +0100 Subject: use getStr instead of cast --- ucb/source/ucp/cmis/cmis_provider.cxx | 4 ++-- ucb/source/ucp/gio/gio_provider.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ucb/source/ucp/cmis/cmis_provider.cxx b/ucb/source/ucp/cmis/cmis_provider.cxx index 297737c5a026..411fef5095c7 100644 --- a/ucb/source/ucp/cmis/cmis_provider.cxx +++ b/ucb/source/ucp/cmis/cmis_provider.cxx @@ -47,8 +47,8 @@ ContentProvider::queryContent( { #ifdef DEBUG fprintf(stderr, "QueryContent: '%s'\n", - (const sal_Char *)rtl::OUStringToOString - (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8)); + rtl::OUStringToOString + (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr()); #endif osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx index 7093a3572a9a..d8a63825f3ec 100644 --- a/ucb/source/ucp/gio/gio_provider.cxx +++ b/ucb/source/ucp/gio/gio_provider.cxx @@ -47,8 +47,8 @@ ContentProvider::queryContent( { #ifdef DEBUG fprintf(stderr, "QueryContent: '%s'", - (const sal_Char *)rtl::OUStringToOString - (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8)); + rtl::OUStringToOString + (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr()); #endif osl::MutexGuard aGuard( m_aMutex ); -- cgit