[Libreoffice-commits] core.git: desktop/source
Caolán McNamara
caolanm at redhat.com
Sun Mar 13 11:26:50 UTC 2016
desktop/source/deployment/registry/dp_registry.cxx | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 342d3f45e2219a1cb1fd9dbf7c3f9636ad4ebca3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Mar 13 11:26:12 2016 +0000
loplugin:stringconstant
Change-Id: I80e034bc3718ddb9bb518073653e374133e6ab6f
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx
index 6faba93..8d203f6 100644
--- a/desktop/source/deployment/registry/dp_registry.cxx
+++ b/desktop/source/deployment/registry/dp_registry.cxx
@@ -386,11 +386,11 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
iPos != that->m_filter2mediaType.end(); ++iPos )
{
OUStringBuffer buf;
- buf.appendAscii( "extension \"" );
+ buf.append( "extension \"" );
buf.append( iPos->first );
- buf.appendAscii( "\" maps to media-type \"" );
+ buf.append( "\" maps to media-type \"" );
buf.append( iPos->second );
- buf.appendAscii( "\" maps to backend " );
+ buf.append( "\" maps to backend " );
const Reference<deployment::XPackageRegistry> xBackend(
that->m_mediaType2backend.find( iPos->second )->second );
allBackends.insert( xBackend );
@@ -408,7 +408,7 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
buf.append(
Reference<lang::XServiceInfo>(
*iPos, UNO_QUERY_THROW )->getImplementationName() );
- buf.appendAscii( ": " );
+ buf.append( ": " );
const Sequence< Reference<deployment::XPackageTypeInfo> > types(
(*iPos)->getSupportedPackageTypes() );
for ( sal_Int32 pos = 0; pos < types.getLength(); ++pos ) {
@@ -417,12 +417,12 @@ Reference<deployment::XPackageRegistry> PackageRegistryImpl::create(
buf.append( xInfo->getMediaType() );
const OUString filter( xInfo->getFileFilter() );
if (!filter.isEmpty()) {
- buf.appendAscii( " (" );
+ buf.append( " (" );
buf.append( filter );
- buf.appendAscii( ")" );
+ buf.append( ")" );
}
if (pos < (types.getLength() - 1))
- buf.appendAscii( ", " );
+ buf.append( ", " );
}
dp_misc::TRACE(buf.makeStringAndClear() + "\n\n");
}
More information about the Libreoffice-commits
mailing list