summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Hunter <hunteke@earlham.edu>2010-11-08 02:37:55 -0500
committerCaolán McNamara <caolanm@redhat.com>2010-11-08 15:45:14 +0000
commit8229c85fcf5038760ec9bd3a76871a9bc80553d7 (patch)
tree71b2166ca8e3bcb2079e12955a1d944e30022b18
parent283c5dc0a6144de343aa8dc46283e6b77aac6e50 (diff)
EasyHack: RTL macro conversion (createFromAscii)
-rw-r--r--automation/source/miniapp/testapp.cxx4
-rw-r--r--automation/source/server/statemnt.cxx9
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 );
}