use getStr instead of cast

This commit is contained in:
Caolán McNamara 2011-10-05 09:29:02 +01:00
parent bfcb6fd277
commit 08f312431e
2 changed files with 4 additions and 4 deletions

View file

@ -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 );

View file

@ -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 );