diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:22 +0100 |
commit | 0f87f64fd0300ed9e219e5cfc12bb40433ee86e4 (patch) | |
tree | 27a89724558cb2c71da501639cb19c90092ca503 | |
parent | d0e6388a217890016ea32619629c45709e8060f7 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I07e4b98ea03f9d5ddcf9c3f0bc0cba676a9155e8
-rw-r--r-- | unotools/source/config/configmgr.cxx | 32 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 2 | ||||
-rw-r--r-- | unotools/source/i18n/transliterationwrapper.cxx | 6 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 8 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbstreamhelper.cxx | 4 |
5 files changed, 26 insertions, 26 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index 356a21d6df33..c1c91f838692 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -91,50 +91,50 @@ struct theConfigManager: OUString utl::ConfigManager::getAboutBoxProductVersion() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooSetupVersionAboutBox")); + "/org.openoffice.Setup", + "Product/ooSetupVersionAboutBox"); } OUString utl::ConfigManager::getAboutBoxProductVersionSuffix() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooSetupVersionAboutBoxSuffix")); + "/org.openoffice.Setup", + "Product/ooSetupVersionAboutBoxSuffix"); } OUString utl::ConfigManager::getDefaultCurrency() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("L10N/ooSetupCurrency")); + "/org.openoffice.Setup", + "L10N/ooSetupCurrency"); } OUString utl::ConfigManager::getLocale() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("L10N/ooLocale")); + "/org.openoffice.Setup", + "L10N/ooLocale"); } OUString utl::ConfigManager::getProductExtension() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooSetupExtension")); + "/org.openoffice.Setup", + "Product/ooSetupExtension"); } OUString utl::ConfigManager::getProductName() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooName")); + "/org.openoffice.Setup", + "Product/ooName"); } OUString utl::ConfigManager::getProductVersion() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooSetupVersion")); + "/org.openoffice.Setup", + "Product/ooSetupVersion"); } OUString utl::ConfigManager::getVendor() { return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooVendor")); + "/org.openoffice.Setup", + "Product/ooVendor"); } void utl::ConfigManager::storeConfigItems() { diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 2b28b2e44761..9f834f3bbbbe 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1018,7 +1018,7 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari try { uno::Sequence< OUString > aElementNames; - GetElementNamesFor( OUString(aG_Dictionaries), aElementNames ); + GetElementNamesFor( aG_Dictionaries, aElementNames ); sal_Int32 nLen = aElementNames.getLength(); const OUString *pElementNames = aElementNames.getConstArray(); diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx index 533655c97d85..a83f17388ce5 100644 --- a/unotools/source/i18n/transliterationwrapper.cxx +++ b/unotools/source/i18n/transliterationwrapper.cxx @@ -114,17 +114,17 @@ void TransliterationWrapper::loadModuleIfNeeded( sal_uInt16 nLang ) if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::SENTENCE_CASE ) { if( bLoad ) - loadModuleByImplName(OUString("SENTENCE_CASE"), nLang); + loadModuleByImplName("SENTENCE_CASE", nLang); } else if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::TITLE_CASE ) { if( bLoad ) - loadModuleByImplName(OUString("TITLE_CASE"), nLang); + loadModuleByImplName("TITLE_CASE", nLang); } else if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::TOGGLE_CASE ) { if( bLoad ) - loadModuleByImplName(OUString("TOGGLE_CASE"), nLang); + loadModuleByImplName("TOGGLE_CASE", nLang); } else { diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index ac3f4cf63b7a..61d2ece25f59 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -113,7 +113,7 @@ std::vector<OUString> getContents(OUString const & url) { OUString getCasePreservingUrl(const INetURLObject& url) { return content(url).executeCommand( - OUString("getCasePreservingURL"), + "getCasePreservingURL", css::uno::Any()). get<OUString>(); } @@ -208,7 +208,7 @@ bool utl::UCBContentHelper::GetTitle( bool utl::UCBContentHelper::Kill(OUString const & url) { try { content(url).executeCommand( - OUString("delete"), + "delete", css::uno::makeAny(true)); return true; } catch (css::uno::RuntimeException const &) { @@ -323,11 +323,11 @@ bool utl::UCBContentHelper::IsYounger( return convert( content(younger).getPropertyValue( - OUString("DateModified")). + "DateModified"). get<css::util::DateTime>()) > convert( content(older).getPropertyValue( - OUString("DateModified")). + "DateModified"). get<css::util::DateTime>()); } catch (css::uno::RuntimeException const &) { throw; diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx index fc3d31c9ee7b..c2e2149d7c61 100644 --- a/unotools/source/ucbhelper/ucbstreamhelper.cxx +++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx @@ -60,7 +60,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo ::ucbhelper::Content aCnt( rFileName, Reference < XCommandEnvironment >(), comphelper::getProcessComponentContext() ); - aCnt.executeCommand( OUString("delete"), makeAny( true ) ); + aCnt.executeCommand( "delete", makeAny( true ) ); } catch ( const CommandAbortedException& ) @@ -93,7 +93,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo aInsertArg.ReplaceExisting = sal_False; Any aCmdArg; aCmdArg <<= aInsertArg; - aContent.executeCommand( OUString("insert"), aCmdArg ); + aContent.executeCommand( "insert", aCmdArg ); } // it is NOT an error when the stream already exists and no truncation was desired |