diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-20 13:02:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-20 13:52:17 +0200 |
commit | 7d769f9df5b95d717f3cd045dbd8f82ff2de27a1 (patch) | |
tree | f04de671670a533ccffe20bf3aa0fa9c5f837a5d /sdext | |
parent | 0670872ce0d191cf93481215025cafd2062b8a8f (diff) |
loplugin: defaultparams
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/graphiccollector.cxx | 2 | ||||
-rw-r--r-- | sdext/source/minimizer/informationdialog.cxx | 10 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizerdialogcontrols.cxx | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sdext/source/minimizer/graphiccollector.cxx b/sdext/source/minimizer/graphiccollector.cxx index 2e7f22758db3..e341371d3fc6 100644 --- a/sdext/source/minimizer/graphiccollector.cxx +++ b/sdext/source/minimizer/graphiccollector.cxx @@ -64,7 +64,7 @@ void ImpAddEntity( std::vector< GraphicCollector::GraphicEntity >& rGraphicEntit const OUString aGraphicURL( rUser.maGraphicURL ); const OUString sPackageURL( "vnd.sun.star.GraphicObject:" ); - if ( rGraphicSettings.mbEmbedLinkedGraphics || (aGraphicURL.isEmpty() || aGraphicURL.match( sPackageURL, 0 ) ) ) + if ( rGraphicSettings.mbEmbedLinkedGraphics || (aGraphicURL.isEmpty() || aGraphicURL.match( sPackageURL ) ) ) { std::vector< GraphicCollector::GraphicEntity >::iterator aIter( rGraphicEntities.begin() ); while( aIter != rGraphicEntities.end() ) diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx index 8a125de75c92..84987e6cace5 100644 --- a/sdext/source/minimizer/informationdialog.cxx +++ b/sdext/source/minimizer/informationdialog.cxx @@ -202,7 +202,7 @@ static OUString ImpValueOfInMB( const sal_Int64& rVal ) fVal /= ( 1 << 20 ); fVal += 0.05; OUStringBuffer aVal( OUString::number( fVal ) ); - sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.', 0 ) ); + sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) ); if ( nX > 0 ) aVal.setLength( nX + 2 ); return aVal.makeStringAndClear(); @@ -274,7 +274,7 @@ void InformationDialog::InitDialog() aPresentationURL.Complete = sFileProtocol.concat( aURL.Name ); aTitle = xURLTransformer->getPresentation( aPresentationURL, sal_False ); - if ( aTitle.match( sFileProtocol, 0 ) ) + if ( aTitle.match( sFileProtocol ) ) aTitle = aTitle.replaceAt( 0, sFileProtocol.getLength(), OUString() ); } @@ -284,15 +284,15 @@ void InformationDialog::InitDialog() const OUString aTitlePlaceholder( !aTitle.isEmpty() ? OUString("%TITLE" ) : OUString("'%TITLE'") ); - sal_Int32 i = aInfoString.indexOf( aOldSizePlaceholder, 0 ); + sal_Int32 i = aInfoString.indexOf( aOldSizePlaceholder ); if ( i >= 0 ) aInfoString = aInfoString.replaceAt( i, aOldSizePlaceholder.getLength(), ImpValueOfInMB( nSource ) ); - sal_Int32 j = aInfoString.indexOf( aNewSizePlaceholder, 0 ); + sal_Int32 j = aInfoString.indexOf( aNewSizePlaceholder ); if ( j >= 0 ) aInfoString = aInfoString.replaceAt( j, aNewSizePlaceholder.getLength(), ImpValueOfInMB( nDest ) ); - sal_Int32 k = aInfoString.indexOf( aTitlePlaceholder, 0 ); + sal_Int32 k = aInfoString.indexOf( aTitlePlaceholder ); if ( k >= 0 ) aInfoString = aInfoString.replaceAt( k, aTitlePlaceholder.getLength(), aTitle ); diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx index e8d3eb09bb21..087f6d48360f 100644 --- a/sdext/source/minimizer/optimizerdialogcontrols.cxx +++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx @@ -590,7 +590,7 @@ static OUString ImpValueOfInMB( const sal_Int64& rVal, sal_Unicode nSeparator = fVal /= ( 1 << 20 ); fVal += 0.05; OUStringBuffer aVal( OUString::number( fVal ) ); - sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.', 0 ) ); + sal_Int32 nX( OUString( aVal.getStr() ).indexOf( '.' ) ); if ( nX >= 0 ) { aVal.setLength( nX + 2 ); @@ -734,7 +734,7 @@ void OptimizerDialog::UpdateControlStatesPage4() { OUString aStr( getString( STR_DELETE_SLIDES ) ); OUString aPlaceholder( "%SLIDES" ); - sal_Int32 i = aStr.indexOf( aPlaceholder, 0 ); + sal_Int32 i = aStr.indexOf( aPlaceholder ); if ( i >= 0 ) aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nDeletedSlides ) ); aSummaryStrings.push_back( aStr ); @@ -754,15 +754,15 @@ void OptimizerDialog::UpdateControlStatesPage4() OUString aImagePlaceholder( "%IMAGES" ); OUString aQualityPlaceholder( "%QUALITY" ); OUString aResolutionPlaceholder( "%RESOLUTION" ); - sal_Int32 i = aStr.indexOf( aImagePlaceholder, 0 ); + sal_Int32 i = aStr.indexOf( aImagePlaceholder ); if ( i >= 0 ) aStr = aStr.replaceAt( i, aImagePlaceholder.getLength(), OUString::number( nGraphics ) ); - sal_Int32 j = aStr.indexOf( aQualityPlaceholder, 0 ); + sal_Int32 j = aStr.indexOf( aQualityPlaceholder ); if ( j >= 0 ) aStr = aStr.replaceAt( j, aQualityPlaceholder.getLength(), OUString::number( nJPEGQuality ) ); - sal_Int32 k = aStr.indexOf( aResolutionPlaceholder, 0 ); + sal_Int32 k = aStr.indexOf( aResolutionPlaceholder ); if ( k >= 0 ) aStr = aStr.replaceAt( k, aResolutionPlaceholder.getLength(), OUString::number( nImageResolution ) ); @@ -789,7 +789,7 @@ void OptimizerDialog::UpdateControlStatesPage4() { OUString aStr( getString( STR_CREATE_REPLACEMENT ) ); OUString aPlaceholder( "%OLE" ); - sal_Int32 i = aStr.indexOf( aPlaceholder, 0 ); + sal_Int32 i = aStr.indexOf( aPlaceholder ); if ( i >= 0 ) aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nOLEReplacements ) ); aSummaryStrings.push_back( aStr ); |