Kaydet (Commit) db081acb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I7d8b0ab33980726ffb4887b1f19797702d224191
üst 768abe34
...@@ -44,10 +44,10 @@ void GraphicExportFilter::gatherProperties( const Sequence<PropertyValue>& rProp ...@@ -44,10 +44,10 @@ void GraphicExportFilter::gatherProperties( const Sequence<PropertyValue>& rProp
if ( aProperty.Name == "FilterName" ) if ( aProperty.Name == "FilterName" )
{ {
aProperty.Value >>= aInternalFilterName; aProperty.Value >>= aInternalFilterName;
aInternalFilterName = aInternalFilterName.replaceFirst( OUString( "draw_" ), OUString() ); aInternalFilterName = aInternalFilterName.replaceFirst("draw_", "");
aInternalFilterName = aInternalFilterName.replaceFirst( OUString( "impress_" ), OUString() ); aInternalFilterName = aInternalFilterName.replaceFirst("impress_", "");
aInternalFilterName = aInternalFilterName.replaceFirst( OUString( "calc_" ), OUString() ); aInternalFilterName = aInternalFilterName.replaceFirst("calc_", "");
aInternalFilterName = aInternalFilterName.replaceFirst( OUString( "writer_" ), OUString() ); aInternalFilterName = aInternalFilterName.replaceFirst("writer_", "");
} }
else if ( aProperty.Name == "FilterData" ) else if ( aProperty.Name == "FilterData" )
{ {
......
...@@ -141,7 +141,7 @@ bool SAL_CALL XmlFilterAdaptor::importImpl( const Sequence< ::com::sun::star::be ...@@ -141,7 +141,7 @@ bool SAL_CALL XmlFilterAdaptor::importImpl( const Sequence< ::com::sun::star::be
Sequence<com::sun::star::beans::PropertyValue> pValue=xstyleLoader->getStyleLoaderOptions(); Sequence<com::sun::star::beans::PropertyValue> pValue=xstyleLoader->getStyleLoaderOptions();
//Load the Styles from the Template URL Supplied in the TypeDetection file //Load the Styles from the Template URL Supplied in the TypeDetection file
if(msTemplateName.indexOf(OUString( "file:" ))==-1) if(msTemplateName.indexOf("file:")==-1)
{ {
SvtPathOptions aOptions; SvtPathOptions aOptions;
OUString PathString = aOptions.SubstituteVariable(OUString("$(progurl)")); OUString PathString = aOptions.SubstituteVariable(OUString("$(progurl)"));
......
...@@ -123,7 +123,7 @@ void XMLFilterJarHelper::addFile( Reference< XInterface > xRootFolder, Reference ...@@ -123,7 +123,7 @@ void XMLFilterJarHelper::addFile( Reference< XInterface > xRootFolder, Reference
{ {
OUString aFileURL( rSourceFile ); OUString aFileURL( rSourceFile );
if( !aFileURL.matchIgnoreAsciiCase( OUString("file://") ) ) if( !aFileURL.matchIgnoreAsciiCase("file://") )
{ {
aFileURL = URIHelper::SmartRel2Abs( INetURLObject(sProgPath), aFileURL, Link<OUString *, bool>(), false ); aFileURL = URIHelper::SmartRel2Abs( INetURLObject(sProgPath), aFileURL, Link<OUString *, bool>(), false );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment