summaryrefslogtreecommitdiff
path: root/testtools
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 /testtools
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 'testtools')
-rw-r--r--testtools/source/performance/pseudo.cxx4
-rw-r--r--testtools/source/performance/ubtest.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/testtools/source/performance/pseudo.cxx b/testtools/source/performance/pseudo.cxx
index 95c54a097693..c107f2aa7b44 100644
--- a/testtools/source/performance/pseudo.cxx
+++ b/testtools/source/performance/pseudo.cxx
@@ -191,7 +191,7 @@ static void SAL_CALL pseudo_Mapping_acquire( uno_Mapping * pMapping )
{
if (1 == osl_atomic_increment( & static_cast< pseudo_Mapping * >( pMapping )->nRef ))
{
- OUString aMappingPurpose( RTL_CONSTASCII_USTRINGPARAM("pseudo") );
+ OUString aMappingPurpose("pseudo");
uno_registerMapping( &pMapping,
pseudo_Mapping_free,
(uno_Environment *)((pseudo_Mapping *)pMapping)->pFrom,
@@ -247,7 +247,7 @@ extern "C" void SAL_CALL uno_ext_getMapping(
if (0 == rtl_ustr_ascii_compare( pFrom->pTypeName->buffer, UNO_LB_UNO ) &&
0 == rtl_ustr_ascii_compare( pTo->pTypeName->buffer, UNO_LB_UNO ))
{
- OUString aMappingPurpose( RTL_CONSTASCII_USTRINGPARAM("pseudo") );
+ OUString aMappingPurpose("pseudo");
// ref count is initially 1
pMapping = new pseudo_uno::pseudo_Mapping( pFrom->pExtEnv, pTo->pExtEnv );
uno_registerMapping( &pMapping, pseudo_uno::pseudo_Mapping_free,
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx
index 5550547e52b2..5d02eeee0d60 100644
--- a/testtools/source/performance/ubtest.cxx
+++ b/testtools/source/performance/ubtest.cxx
@@ -965,7 +965,7 @@ sal_Int32 TestImpl::run( const Sequence< OUString > & rArgs )
// defaults
FILE * stream = stderr;
sal_Int64 nLoop = NLOOP;
- OUString aArg( RTL_CONSTASCII_USTRINGPARAM("dms") );
+ OUString aArg("dms");
try
{
@@ -1123,8 +1123,8 @@ sal_Int32 TestImpl::run( const Sequence< OUString > & rArgs )
out( "\" ..." );
oslProcess hProcess = 0;
- OUString aUnoExe( RTL_CONSTASCII_USTRINGPARAM("uno") );
- OUString aWorkingDir( RTL_CONSTASCII_USTRINGPARAM(".") );
+ OUString aUnoExe("uno");
+ OUString aWorkingDir(".");
osl_executeProcess(
aUnoExe.pData, pArgs, sizeof(aArgs) / sizeof(OUString),
osl_Process_SEARCHPATH | osl_Process_DETACHED | osl_Process_NORMAL,