summaryrefslogtreecommitdiff
path: root/extensions/test/ole/unloading/unloadTest.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-19 11:39:07 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-19 10:48:30 +0000
commit39d45390f4fab1e9e85f211d74ed2c08fda5b652 (patch)
treeac4b224a66a18429cd4722a61ee3d401f8e9951c /extensions/test/ole/unloading/unloadTest.cxx
parent5c908d0431ee975c1ee7aa245af83b9eb7f95da6 (diff)
removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'extensions/test/ole/unloading/unloadTest.cxx')
-rw-r--r--extensions/test/ole/unloading/unloadTest.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/test/ole/unloading/unloadTest.cxx b/extensions/test/ole/unloading/unloadTest.cxx
index 435042c6f115..a81244113d5d 100644
--- a/extensions/test/ole/unloading/unloadTest.cxx
+++ b/extensions/test/ole/unloading/unloadTest.cxx
@@ -66,7 +66,7 @@ sal_Bool test1()
Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);
Reference<XMultiComponentFactory> fac= context->getServiceManager();
- OUString sService1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.oleautomation.BridgeSupplier"));
+ OUString sService1("com.sun.star.bridge.oleautomation.BridgeSupplier");
Reference<XInterface> xint1= fac->createInstanceWithContext( sService1, context);
OUString sModule(
@@ -76,7 +76,7 @@ sal_Bool test1()
rtl_unloadUnusedModules( NULL);
- OUString sFactoryFunc( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
+ OUString sFactoryFunc("component_getFactory");
void* pSymbol= osl_getSymbol( hMod,sFactoryFunc.pData);
// true, instance alive
sal_Bool bTest1= pSymbol ? sal_True : sal_False;
@@ -101,7 +101,7 @@ sal_Bool test2()
Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);
Reference<XMultiComponentFactory> fac= context->getServiceManager();
- OUString sService2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.OleBridgeSupplierVar1"));
+ OUString sService2("com.sun.star.bridge.OleBridgeSupplierVar1");
Reference<XInterface> xint= fac->createInstanceWithContext( sService2, context);
OUString sModule(
@@ -110,7 +110,7 @@ sal_Bool test2()
osl_unloadModule( hMod);
rtl_unloadUnusedModules( NULL);
- OUString sFactoryFunc( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
+ OUString sFactoryFunc("component_getFactory");
void* pSymbol= osl_getSymbol( hMod,sFactoryFunc.pData);
// true, instance alive
sal_Bool bTest1= pSymbol ? sal_True : sal_False;
@@ -135,7 +135,7 @@ sal_Bool test3()
Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);
Reference<XMultiComponentFactory> fac= context->getServiceManager();
- OUString sService( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.oleautomation.Factory"));
+ OUString sService("com.sun.star.bridge.oleautomation.Factory");
Reference<XInterface> xint= fac->createInstanceWithContext( sService, context);
@@ -145,7 +145,7 @@ sal_Bool test3()
osl_unloadModule( hMod);
rtl_unloadUnusedModules( NULL);
- OUString sFactoryFunc( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
+ OUString sFactoryFunc("component_getFactory");
void* pSymbol= osl_getSymbol( hMod,sFactoryFunc.pData);
// true, instance alive
sal_Bool bTest1= pSymbol ? sal_True : sal_False;
@@ -169,7 +169,7 @@ sal_Bool test4()
oslModule hMod= NULL;
OUString sModule(
RTL_CONSTASCII_USTRINGPARAM("oleautobridge.uno" SAL_DLLEXTENSION));
- OUString sFactoryFunc( RTL_CONSTASCII_USTRINGPARAM("component_getFactory"));
+ OUString sFactoryFunc("component_getFactory");
{
printf("Test4: com.sun.star.bridge.oleautomation.ApplicationRegistration\n");
Reference<XSimpleRegistry> xreg= createSimpleRegistry();
@@ -178,7 +178,7 @@ sal_Bool test4()
Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);
Reference<XMultiComponentFactory> fac= context->getServiceManager();
- OUString sService4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.oleautomation.ApplicationRegistration"));
+ OUString sService4("com.sun.star.bridge.oleautomation.ApplicationRegistration");
Reference<XInterface> xint= fac->createInstanceWithContext( sService4, context);
hMod= osl_loadModule( sModule.pData, 0);