diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 13:30:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 14:12:31 +0100 |
commit | 0ad5204d325b808aa3661c7ddac5224c8ffb6a2b (patch) | |
tree | 48c0931fe56d222f94e9a805b06d556a2dbafabc /sdext | |
parent | cb9e8bbdb9dd3f2f83ab862ffa6d734af7be79db (diff) |
sdext: Use appropriate OUString functions on string constants
Change-Id: I6815b791b935bffe6409af2bcfdd6d6adceb2252
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/configurationaccess.cxx | 7 | ||||
-rw-r--r-- | sdext/source/minimizer/pppoptimizerdialog.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/filterdet.cxx | 3 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterFrameworkObserver.cxx | 2 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScreen.cxx | 2 |
5 files changed, 7 insertions, 9 deletions
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx index 3a11645d8439..d2761493beed 100644 --- a/sdext/source/minimizer/configurationaccess.cxx +++ b/sdext/source/minimizer/configurationaccess.cxx @@ -305,11 +305,10 @@ Reference< XInterface > ConfigurationAccess::OpenConfiguration( bool bReadOnly ) PropertyState_DIRECT_VALUE ) ); OUString sAccessService; if ( bReadOnly ) - sAccessService = OUString( - "com.sun.star.configuration.ConfigurationAccess" ); + sAccessService = "com.sun.star.configuration.ConfigurationAccess"; else - sAccessService = OUString( - "com.sun.star.configuration.ConfigurationUpdateAccess" ); + sAccessService = + "com.sun.star.configuration.ConfigurationUpdateAccess"; xRoot = xProvider->createInstanceWithArguments( sAccessService, aCreationArguments ); diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx index 6be8e712289e..49064f1812f1 100644 --- a/sdext/source/minimizer/pppoptimizerdialog.cxx +++ b/sdext/source/minimizer/pppoptimizerdialog.cxx @@ -164,7 +164,7 @@ Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames() { Sequence < OUString > aRet(1); OUString* pArray = aRet.getArray(); - pArray[0] = OUString ( SERVICE_NAME ); + pArray[0] = SERVICE_NAME; return aRet; } diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx index 930df6e117a9..511b7d69db6e 100644 --- a/sdext/source/pdfimport/filterdet.cxx +++ b/sdext/source/pdfimport/filterdet.cxx @@ -323,8 +323,7 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF { nFilterNamePos = nAttribs; rFilterData.realloc( ++nAttribs ); - rFilterData[ nFilterNamePos ].Name = - OUString( "FilterName" ); + rFilterData[ nFilterNamePos ].Name = "FilterName"; } aOutTypeName = "pdf_Portable_Document_Format"; diff --git a/sdext/source/presenter/PresenterFrameworkObserver.cxx b/sdext/source/presenter/PresenterFrameworkObserver.cxx index e2bdcef71250..6bb3a8d9fe0a 100644 --- a/sdext/source/presenter/PresenterFrameworkObserver.cxx +++ b/sdext/source/presenter/PresenterFrameworkObserver.cxx @@ -121,7 +121,7 @@ void SAL_CALL PresenterFrameworkObserver::notifyConfigurationChange ( Action aAction (maAction); Predicate aPredicate (maPredicate); - if (rEvent.Type.equals("ConfigurationUpdateEnd")) + if (rEvent.Type == "ConfigurationUpdateEnd") { Shutdown(); aAction(aPredicate); diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index 37142c712e3d..5c19b05e691d 100644 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -677,7 +677,7 @@ void PresenterScreen::ProcessLayout ( { Reference<container::XHierarchicalNameAccess> xLayoutNode ( rConfiguration.GetConfigurationNode( - OUString("Presenter/Layouts/")+rsLayoutName), + "Presenter/Layouts/"+rsLayoutName), UNO_QUERY_THROW); // Read the parent layout first, if one is referenced. |