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 /sfx2/source/dialog | |
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 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 7 |
2 files changed, 7 insertions, 8 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 26a5345a3573..c8178a4420f6 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -1762,12 +1762,12 @@ void FileDialogHelper_Impl::addFilters( const OUString& rFactory, // create the list of filters OUStringBuffer sQuery(256); - sQuery.appendAscii(RTL_CONSTASCII_STRINGPARAM("getSortedFilterList()")); - sQuery.appendAscii(RTL_CONSTASCII_STRINGPARAM(":module=")); + sQuery.append("getSortedFilterList()"); + sQuery.append(":module="); sQuery.append(rFactory); // use long name here ! - sQuery.appendAscii(RTL_CONSTASCII_STRINGPARAM(":iflags=")); + sQuery.append(":iflags="); sQuery.append(OUString::number(m_nMustFlags)); - sQuery.appendAscii(RTL_CONSTASCII_STRINGPARAM(":eflags=")); + sQuery.append(":eflags="); sQuery.append(OUString::number(m_nDontFlags)); uno::Reference< XEnumeration > xResult; 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() ); |