summaryrefslogtreecommitdiff
path: root/sal/test
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-19 09:22:44 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-19 09:00:26 +0000
commit8b27d78b4afaa9c47ca0fda144c8060f2f14046b (patch)
tree2dbddceebf0f96492adc5652697e8efce8a8ba06 /sal/test
parentfe8eba5faa59ddf9ee82f3eb009daac72a0ec846 (diff)
automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sal/test')
-rw-r--r--sal/test/testbootstrap.cxx10
-rw-r--r--sal/test/unloading/unloadTest.cxx34
2 files changed, 22 insertions, 22 deletions
diff --git a/sal/test/testbootstrap.cxx b/sal/test/testbootstrap.cxx
index b77e684138ca..5de39f01de26 100644
--- a/sal/test/testbootstrap.cxx
+++ b/sal/test/testbootstrap.cxx
@@ -56,7 +56,7 @@ int main( int argc, char *argv[] )
OUString iniName;
- Bootstrap::get(OUString(RTL_CONSTASCII_USTRINGPARAM("iniName")), iniName, OUString());
+ Bootstrap::get(OUString("iniName"), iniName, OUString());
#if OSL_DEBUG_LEVEL > 1
if(iniName.getLength())
@@ -76,7 +76,7 @@ int main( int argc, char *argv[] )
sal_Bool useDefault;
OUString aDummy;
- useDefault = bootstrap.getFrom(OUString(RTL_CONSTASCII_USTRINGPARAM("USEDEFAULT")), aDummy);
+ useDefault = bootstrap.getFrom(OUString("USEDEFAULT"), aDummy);
sal_Bool result = sal_False;
sal_Bool found = sal_True;
@@ -105,12 +105,12 @@ int main( int argc, char *argv[] )
fprintf(stderr, "bootstrap parameter couldn't be found\n");
// test the default case
- name = OUString( RTL_CONSTASCII_USTRINGPARAM( "no_one_has_set_this_name" ) );
+ name = OUString( "no_one_has_set_this_name" );
OSL_ASSERT( ! bootstrap.getFrom( name, value ) );
result = result && !bootstrap.getFrom( name, value );
- myDefault = OUString( RTL_CONSTASCII_USTRINGPARAM( "1" ) );
- OUString myDefault2 = OUString( RTL_CONSTASCII_USTRINGPARAM( "2" ) );
+ myDefault = OUString( "1" );
+ OUString myDefault2 = OUString( "2" );
bootstrap.getFrom( name, value, myDefault );
OSL_ASSERT( value == myDefault );
diff --git a/sal/test/unloading/unloadTest.cxx b/sal/test/unloading/unloadTest.cxx
index 8733eebba23e..39ced7a05af9 100644
--- a/sal/test/unloading/unloadTest.cxx
+++ b/sal/test/unloading/unloadTest.cxx
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
// Test if the servicemanager can be created and if the sample libs
// can be loaded
// Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
-// OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+// OUString("applicat.rdb"));
// if( !serviceManager.is())
// {
// printf("\n ####################################################\n"
@@ -120,7 +120,7 @@ int main(int argc, char* argv[])
// }
// //destroy servicemanager
// Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
-// Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+// Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
// Reference<XComponentContext> xContext;
// any_prop >>= xContext;
// Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -179,7 +179,7 @@ sal_Bool test1()
OUString lib1Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY1));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));
@@ -189,7 +189,7 @@ sal_Bool test1()
xint=0;
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -216,7 +216,7 @@ sal_Bool test2()
OUString lib1Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY1));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));
@@ -233,7 +233,7 @@ sal_Bool test2()
rtl_registerModuleForUnloading(mod3);
// ----------------------------------------------------------
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -261,7 +261,7 @@ sal_Bool test3()
OUString lib1Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY1));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));
@@ -277,7 +277,7 @@ sal_Bool test3()
rtl_registerModuleForUnloading(mod2);
// ----------------------------------------------------------
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -309,7 +309,7 @@ sal_Bool test4()
OUString lib2Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY2));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));
@@ -325,7 +325,7 @@ sal_Bool test4()
//-----------------------------------------------------------
// ----------------------------------------------------------
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -357,7 +357,7 @@ sal_Bool test5()
OUString sSymbol( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
//-----------------------------------------------------------
Reference<XInterface> xint= serviceManager->createInstance( OUString(
@@ -381,7 +381,7 @@ sal_Bool test5()
// get rid of the service manager
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -426,7 +426,7 @@ sal_Bool test6()
OUString sSymbol( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));
@@ -436,7 +436,7 @@ sal_Bool test6()
// get rid of the service manager
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -530,7 +530,7 @@ sal_Bool test8()
{
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XContentEnumerationAccess> xContent( serviceManager, UNO_QUERY);
Reference<XEnumeration> xenum= xContent->createContentEnumeration(
OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME4)));
@@ -580,7 +580,7 @@ sal_Bool test8()
// get rid of the service manager
Reference<XPropertySet> xSet( serviceManager, UNO_QUERY);
- Any any_prop= xSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")));
+ Any any_prop= xSet->getPropertyValue( OUString("DefaultContext"));
Reference<XComponentContext> xContext;
any_prop >>= xContext;
Reference<XComponent> xComponent( xContext, UNO_QUERY);
@@ -616,7 +616,7 @@ sal_Bool test9()
OUString lib1Name( RTL_CONSTASCII_USTRINGPARAM(LIBRARY1));
Reference<XMultiServiceFactory> serviceManager= createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")));
+ OUString("applicat.rdb"));
Reference<XInterface> xint= serviceManager->createInstance( OUString(
RTL_CONSTASCII_USTRINGPARAM(SERVICENAME1)));