[Libreoffice-commits] .: automation/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Nov 8 07:45:57 PST 2010


 automation/source/miniapp/testapp.cxx |    4 ++--
 automation/source/server/statemnt.cxx |    9 +++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

New commits:
commit d038d14816f05bd07cac82fa2c7640932553ee40
Author: Kevin Hunter <hunteke at earlham.edu>
Date:   Mon Nov 8 02:37:55 2010 -0500

    EasyHack: RTL macro conversion (createFromAscii)

diff --git a/automation/source/miniapp/testapp.cxx b/automation/source/miniapp/testapp.cxx
index d6cdd79..2af55c0 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 afa4d8b..4fbc32c 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 );
 }
 


More information about the Libreoffice-commits mailing list