From 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 Nov 2013 17:06:06 +0200 Subject: 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 --- sfx2/source/dialog/taskpane.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sfx2/source/dialog/taskpane.cxx') diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index 394f4bc0e7ba..12a7b1dcfd77 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -107,10 +107,9 @@ namespace sfx2 const OUString sWindowStateRef( aModuleProps.getOrDefault( "ooSetupFactoryWindowStateConfigRef", OUString() ) ); - aPathComposer.appendAscii(RTL_CONSTASCII_STRINGPARAM( - "org.openoffice.Office.UI.")); + aPathComposer.append( "org.openoffice.Office.UI." ); aPathComposer.append( sWindowStateRef ); - aPathComposer.appendAscii(RTL_CONSTASCII_STRINGPARAM("/UIElements/States")); + aPathComposer.append( "/UIElements/States" ); if ( !i_rResourceURL.isEmpty() ) { aPathComposer.append('/').append( i_rResourceURL ); @@ -173,7 +172,7 @@ namespace sfx2 if ( sImageURL.startsWith( pCommandImagePrefix ) ) { OUStringBuffer aCommandName; - aCommandName.appendAscii(RTL_CONSTASCII_STRINGPARAM(".uno:")); + aCommandName.append( ".uno:" ); aCommandName.append( sImageURL.copy( nCommandImagePrefixLen ) ); const OUString sCommandName( aCommandName.makeStringAndClear() ); -- cgit