diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 08:56:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 12:54:20 +0200 |
commit | cf234676134ff225ea60d708d215a418975e67b7 (patch) | |
tree | ed921d182c013af0f355218c55edc48d2825e7aa /svtools/source/config | |
parent | 2a3c206dfbba4677842b59d1ec22fd1ec957969a (diff) |
Upcoming loplugin:elidestringvar: svtools
Change-Id: I950ae6fd44cc346af8be6669c8c5432fc0aa9ceb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95571
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/source/config')
-rw-r--r-- | svtools/source/config/extcolorcfg.cxx | 3 | ||||
-rw-r--r-- | svtools/source/config/printoptions.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index e23a2000b7df..707047f8b535 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -317,9 +317,8 @@ void ExtendedColorConfig_Impl::FillComponentColors(const uno::Sequence < OUStrin uno::Sequence < OUString > aDefaultColorNames = aColorNames; const OUString sColor("/Color"); - const OUString sDefaultColor("/DefaultColor"); lcl_addString(aColorNames,sColor); - lcl_addString(aDefaultColorNames,sDefaultColor); + lcl_addString(aDefaultColorNames,"/DefaultColor"); uno::Sequence< uno::Any > aColors = GetProperties( aColorNames ); const uno::Any* pColors = aColors.getConstArray(); diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx index 4a783863eb96..bb08bb3198f3 100644 --- a/svtools/source/config/printoptions.cxx +++ b/svtools/source/config/printoptions.cxx @@ -447,8 +447,7 @@ SvtPrinterOptions::SvtPrinterOptions() // ... and initialize our data container only if it not already! if( m_pStaticDataContainer == nullptr ) { - OUString aRootPath = ROOTNODE_START "/Printer"; - m_pStaticDataContainer = new SvtPrintOptions_Impl( aRootPath ); + m_pStaticDataContainer = new SvtPrintOptions_Impl( ROOTNODE_START "/Printer" ); pPrinterOptionsDataContainer = m_pStaticDataContainer; svtools::ItemHolder2::holdConfigItem(EItem::PrintOptions); } @@ -481,8 +480,7 @@ SvtPrintFileOptions::SvtPrintFileOptions() // ... and initialize our data container only if it not already! if( m_pStaticDataContainer == nullptr ) { - OUString aRootPath = ROOTNODE_START "/File"; - m_pStaticDataContainer = new SvtPrintOptions_Impl( aRootPath ); + m_pStaticDataContainer = new SvtPrintOptions_Impl( ROOTNODE_START "/File" ); pPrintFileOptionsDataContainer = m_pStaticDataContainer; svtools::ItemHolder2::holdConfigItem(EItem::PrintFileOptions); |