diff options
-rw-r--r-- | automation/source/miniapp/testapp.cxx | 4 | ||||
-rw-r--r-- | automation/source/server/statemnt.cxx | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/automation/source/miniapp/testapp.cxx b/automation/source/miniapp/testapp.cxx index 539f4851b8e3..3a6160bad944 100644 --- a/automation/source/miniapp/testapp.cxx +++ b/automation/source/miniapp/testapp.cxx @@ -310,8 +310,8 @@ Reference< XContentProviderManager > InitializeUCB( void ) ucbhelper::ContentBroker::get()->getContentProviderManagerInterface(); Reference< XContentProvider > xFileProvider - ( xSMgr->createInstance( OUString::createFromAscii( "com.sun.star.ucb.FileContentProvider" ) ), UNO_QUERY ); - xUcb->registerContentProvider( xFileProvider, OUString::createFromAscii( "file" ), sal_True ); + ( xSMgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.FileContentProvider" )) ), UNO_QUERY ); + xUcb->registerContentProvider( xFileProvider, OUString( RTL_CONSTASCII_USTRINGPARAM( "file" )), sal_True ); return xUcb; } diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx index 893dbd6710e3..d0e9bed2f644 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -88,8 +88,9 @@ #include "retstrm.hxx" #if OSL_DEBUG_LEVEL > 1 -#include "editwin.hxx" +# include "editwin.hxx" #endif + #include "rcontrol.hxx" #include <automation/communi.hxx> #include "testtool.hxx" @@ -479,13 +480,13 @@ void StatementSlot::AddReferer() nAnzahl++; aArgs.realloc(nAnzahl); pArg = aArgs.getArray(); - pArg[nAnzahl-1].Name = rtl::OUString::createFromAscii("Referer"); - pArg[nAnzahl-1].Value <<= ::rtl::OUString::createFromAscii("private:user"); + pArg[nAnzahl-1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Referer" )); + pArg[nAnzahl-1].Value <<= ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:user" )); nAnzahl++; aArgs.realloc(nAnzahl); pArg = aArgs.getArray(); - pArg[nAnzahl-1].Name = rtl::OUString::createFromAscii("SynchronMode"); + pArg[nAnzahl-1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SynchronMode" )); pArg[nAnzahl-1].Value <<= sal_Bool( TRUE ); } |