diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-19 17:06:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (patch) | |
tree | 72d0d1d16806f1c785a4f79ea2c0cdfe54bb8101 /extensions | |
parent | 3af99e4d59d89c343965a928681a30f36b1007d2 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
aStrBuf.append( "ln(x)" );
which compiles down to the same code.
Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/nsplugin/source/so_main.cxx | 9 | ||||
-rw-r--r-- | extensions/source/propctrlr/selectlabeldialog.cxx | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/extensions/source/nsplugin/source/so_main.cxx b/extensions/source/nsplugin/source/so_main.cxx index 8678f625878b..ba617ed2853b 100644 --- a/extensions/source/nsplugin/source/so_main.cxx +++ b/extensions/source/nsplugin/source/so_main.cxx @@ -313,9 +313,9 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f // accept string OSL_ASSERT( buf.isEmpty() ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "--accept=pipe,name=" ) ); + buf.append( "--accept=pipe,name=" ); buf.append( aPluginPipeName ); //user installation path as pipe name - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( ";urp;" ) ); + buf.append( ";urp;" ); OUString sConnectStartString( buf.makeStringAndClear() ); // arguments @@ -332,10 +332,9 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f // connection string OSL_ASSERT( buf.isEmpty() ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "uno:pipe,name=" ) ); + buf.append( "uno:pipe,name=" ); buf.append( aPluginPipeName ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( - ";urp;StarOffice.ComponentContext" ) ); + buf.append( ";urp;StarOffice.ComponentContext" ); OUString sConnectString( buf.makeStringAndClear() ); try diff --git a/extensions/source/propctrlr/selectlabeldialog.cxx b/extensions/source/propctrlr/selectlabeldialog.cxx index f4d3643b52d4..36dae6ea1fd0 100644 --- a/extensions/source/propctrlr/selectlabeldialog.cxx +++ b/extensions/source/propctrlr/selectlabeldialog.cxx @@ -224,7 +224,7 @@ namespace pcr OUString sDisplayName = OUStringBuffer( ::comphelper::getString(xAsSet->getPropertyValue(PROPERTY_LABEL))). - appendAscii(RTL_CONSTASCII_STRINGPARAM(" (")).append(sName).append(')'). + append(" (").append(sName).append(')'). makeStringAndClear(); // all requirements met -> insert |