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

loplugin:stringcopy: framework

Change-Id: Id63d99bc5048cfdffc834cf034f078d783ca95dc
üst dc4704ce
...@@ -77,7 +77,7 @@ void FillLangItems( std::set< OUString > &rLangItems, ...@@ -77,7 +77,7 @@ void FillLangItems( std::set< OUString > &rLangItems,
if( rSystemLanguage != LANGUAGE_DONTKNOW ) if( rSystemLanguage != LANGUAGE_DONTKNOW )
{ {
if ( IsScriptTypeMatchingToLanguage( nScriptType, rSystemLanguage )) if ( IsScriptTypeMatchingToLanguage( nScriptType, rSystemLanguage ))
rLangItems.insert( OUString( SvtLanguageTable::GetLanguageString( rSystemLanguage )) ); rLangItems.insert( SvtLanguageTable::GetLanguageString( rSystemLanguage ) );
} }
//3--UI //3--UI
...@@ -85,7 +85,7 @@ void FillLangItems( std::set< OUString > &rLangItems, ...@@ -85,7 +85,7 @@ void FillLangItems( std::set< OUString > &rLangItems,
if( rUILanguage != LANGUAGE_DONTKNOW ) if( rUILanguage != LANGUAGE_DONTKNOW )
{ {
if ( IsScriptTypeMatchingToLanguage( nScriptType, rUILanguage )) if ( IsScriptTypeMatchingToLanguage( nScriptType, rUILanguage ))
rLangItems.insert( OUString( SvtLanguageTable::GetLanguageString( rUILanguage )) ); rLangItems.insert( SvtLanguageTable::GetLanguageString( rUILanguage ) );
} }
//4--guessed language //4--guessed language
...@@ -132,7 +132,7 @@ void FillLangItems( std::set< OUString > &rLangItems, ...@@ -132,7 +132,7 @@ void FillLangItems( std::set< OUString > &rLangItems,
break; break;
const Locale& rLocale=rLocales[i]; const Locale& rLocale=rLocales[i];
if( IsScriptTypeMatchingToLanguage( nScriptType, SvtLanguageTable::GetLanguageType( rLocale.Language ))) if( IsScriptTypeMatchingToLanguage( nScriptType, SvtLanguageTable::GetLanguageType( rLocale.Language )))
rLangItems.insert( OUString( rLocale.Language ) ); rLangItems.insert( rLocale.Language );
} }
} }
} }
......
...@@ -1072,7 +1072,7 @@ OUString ToolbarLayoutManager::implts_generateGenericAddonToolbarTitle( sal_Int3 ...@@ -1072,7 +1072,7 @@ OUString ToolbarLayoutManager::implts_generateGenericAddonToolbarTitle( sal_Int3
OUString aNumStr = rI18nHelper.GetNum( nNumber, 0, false, false ); OUString aNumStr = rI18nHelper.GetNum( nNumber, 0, false, false );
aAddonGenericTitle = aAddonGenericTitle.replaceFirst( "%num%", aNumStr ); aAddonGenericTitle = aAddonGenericTitle.replaceFirst( "%num%", aNumStr );
return OUString( aAddonGenericTitle ); return aAddonGenericTitle;
} }
void ToolbarLayoutManager::implts_createAddonsToolBars() void ToolbarLayoutManager::implts_createAddonsToolBars()
......
...@@ -42,7 +42,7 @@ DEFINE_XSERVICEINFO_MULTISERVICE_2( ...@@ -42,7 +42,7 @@ DEFINE_XSERVICEINFO_MULTISERVICE_2(
DispatchRecorder, DispatchRecorder,
::cppu::OWeakObject, ::cppu::OWeakObject,
"com.sun.star.frame.DispatchRecorder", "com.sun.star.frame.DispatchRecorder",
OUString("com.sun.star.comp.framework.DispatchRecorder")) "com.sun.star.comp.framework.DispatchRecorder")
DEFINE_INIT_SERVICE( DEFINE_INIT_SERVICE(
DispatchRecorder, DispatchRecorder,
......
...@@ -106,7 +106,7 @@ void NotebookbarMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > ...@@ -106,7 +106,7 @@ void NotebookbarMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
const utl::OConfigurationTreeRoot aImplementationsNode( const utl::OConfigurationTreeRoot aImplementationsNode(
m_xContext, m_xContext,
OUString( aPath.makeStringAndClear() ), aPath.makeStringAndClear(),
false); false);
if ( !aImplementationsNode.isValid() ) if ( !aImplementationsNode.isValid() )
return; return;
......
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