diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-15 11:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 10:29:31 +0200 |
commit | 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch) | |
tree | 6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /sdext/source | |
parent | 2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff) |
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/minimizer/impoptimizer.cxx | 6 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizerdialog.cxx | 4 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfiadaptor.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx index 2925053d7efe..da35da518dbd 100644 --- a/sdext/source/minimizer/impoptimizer.cxx +++ b/sdext/source/minimizer/impoptimizer.cxx @@ -316,7 +316,7 @@ Reference< XGraphic > ImpCompressGraphic( const Reference< XComponentContext >& OUString aDestMimeType( "image/png" ); if ( rGraphicSettings.mbJPEGCompression && !bTransparent && !bAlpha && !bAnimated ) { - aDestMimeType = OUString( "image/jpeg" ); + aDestMimeType = "image/jpeg"; // if( aSourceMimeType != aDestMimeType ) bNeedsOptimizing = sal_True; } @@ -516,8 +516,8 @@ void ImpOptimizer::DispatchStatus() if ( mxStatusDispatcher.is() ) { URL aURL; - aURL.Protocol = OUString( "vnd.com.sun.star.comp.PresentationMinimizer:" ); - aURL.Path = OUString( "statusupdate" ); + aURL.Protocol = "vnd.com.sun.star.comp.PresentationMinimizer:"; + aURL.Path = "statusupdate"; mxStatusDispatcher->dispatch( aURL, GetStatusSequence() ); } } diff --git a/sdext/source/minimizer/optimizerdialog.cxx b/sdext/source/minimizer/optimizerdialog.cxx index 47605277b12f..4a28738cad9a 100644 --- a/sdext/source/minimizer/optimizerdialog.cxx +++ b/sdext/source/minimizer/optimizerdialog.cxx @@ -597,8 +597,8 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent ) mrOptimizerDialog.GetFrame())); URL aURL; - aURL.Protocol = OUString( "vnd.com.sun.star.comp.PPPOptimizer:" ); - aURL.Path = OUString( "optimize" ); + aURL.Protocol = "vnd.com.sun.star.comp.PPPOptimizer:"; + aURL.Path = "optimize"; Sequence< PropertyValue > lArguments( 3 ); lArguments[ 0 ].Name = "Settings"; diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx index 344845b76534..b1419af68639 100644 --- a/sdext/source/pdfimport/pdfiadaptor.cxx +++ b/sdext/source/pdfimport/pdfiadaptor.cxx @@ -169,7 +169,7 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert { nPwPos = aFilterData.getLength(); aFilterData.realloc( nPwPos+1 ); - aFilterData[nPwPos].Name = OUString( "Password" ); + aFilterData[nPwPos].Name = "Password"; } aFilterData[nPwPos].Value <<= aPwd; bRet = xSubFilter->filter( aFilterData ); diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index c02cd9a3cb4b..03eb94518508 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -653,7 +653,7 @@ void Parser::readFont() if( aResult.familyName.isEmpty() ) { // last fallback - aResult.familyName = OUString( "Arial" ); + aResult.familyName = "Arial"; aResult.isUnderline = false; } |