[Libreoffice-commits] core.git: sc/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Feb 2 13:44:50 UTC 2017


 sc/source/core/tool/appoptio.cxx |   14 +++++++-------
 sc/source/core/tool/docoptio.cxx |    4 ++--
 sc/source/core/tool/unitconv.cxx |    2 +-
 sc/source/core/tool/viewopti.cxx |    6 +++---
 sc/source/ui/dbgui/csvruler.cxx  |    4 ++--
 5 files changed, 15 insertions(+), 15 deletions(-)

New commits:
commit 27a905914672897aa012cd47e00c42f3129bd99b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Feb 2 14:30:12 2017 +0100

    sc: fix loplugin:stringconstant warnings
    
    Change-Id: I6f9e77ed380baba0a46374292fb2a65d41e15e71

diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index 9b7a958..8b06ea8 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -313,13 +313,13 @@ Sequence<OUString> ScAppCfg::GetCompatPropertyNames()
 }
 
 ScAppCfg::ScAppCfg() :
-    aLayoutItem( OUString( CFGPATH_LAYOUT ) ),
-    aInputItem( OUString( CFGPATH_INPUT ) ),
-    aRevisionItem( OUString( CFGPATH_REVISION ) ),
-    aContentItem( OUString( CFGPATH_CONTENT ) ),
-    aSortListItem( OUString( CFGPATH_SORTLIST ) ),
-    aMiscItem( OUString( CFGPATH_MISC ) ),
-    aCompatItem( OUString(CFGPATH_COMPAT ) )
+    aLayoutItem( CFGPATH_LAYOUT ),
+    aInputItem( CFGPATH_INPUT ),
+    aRevisionItem( CFGPATH_REVISION ),
+    aContentItem( CFGPATH_CONTENT ),
+    aSortListItem( CFGPATH_SORTLIST ),
+    aMiscItem( CFGPATH_MISC ),
+    aCompatItem( CFGPATH_COMPAT )
 {
     sal_Int32 nIntVal = 0;
 
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index 63407bf..1aa0fae 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -216,8 +216,8 @@ Sequence<OUString> ScDocCfg::GetLayoutPropertyNames()
 }
 
 ScDocCfg::ScDocCfg() :
-    aCalcItem( OUString( CFGPATH_CALC ) ),
-    aLayoutItem(OUString(CFGPATH_DOCLAYOUT))
+    aCalcItem( CFGPATH_CALC ),
+    aLayoutItem(CFGPATH_DOCLAYOUT)
 {
     sal_Int32 nIntVal = 0;
 
diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx
index 97905cd..45215f5 100644
--- a/sc/source/core/tool/unitconv.cxx
+++ b/sc/source/core/tool/unitconv.cxx
@@ -60,7 +60,7 @@ ScUnitConverter::ScUnitConverter()
     // read from configuration - "convert.ini" is no longer used
     //TODO: config item as member to allow change of values
 
-    ScLinkConfigItem aConfigItem( OUString( CFGPATH_UNIT ) );
+    ScLinkConfigItem aConfigItem( CFGPATH_UNIT );
 
     // empty node name -> use the config item's path itself
     OUString aEmptyString;
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index 4c2b4f5..9a6b193 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -311,9 +311,9 @@ Sequence<OUString> ScViewCfg::GetGridPropertyNames()
 }
 
 ScViewCfg::ScViewCfg() :
-    aLayoutItem( OUString( CFGPATH_LAYOUT ) ),
-    aDisplayItem( OUString( CFGPATH_DISPLAY ) ),
-    aGridItem( OUString( CFGPATH_GRID ) )
+    aLayoutItem( CFGPATH_LAYOUT ),
+    aDisplayItem( CFGPATH_DISPLAY ),
+    aGridItem( CFGPATH_GRID )
 {
     sal_Int32 nIntVal = 0;
 
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx
index c0b5b19..c3406cc 100644
--- a/sc/source/ui/dbgui/csvruler.cxx
+++ b/sc/source/ui/dbgui/csvruler.cxx
@@ -40,7 +40,7 @@ static void load_FixedWidthList(ScCsvSplits &rSplits)
     Sequence<Any>aValues;
     const Any *pProperties;
     Sequence<OUString> aNames { FIXED_WIDTH_LIST };
-    ScLinkConfigItem aItem( OUString( SEP_PATH ) );
+    ScLinkConfigItem aItem( SEP_PATH );
 
     aValues = aItem.GetProperties( aNames );
     pProperties = aValues.getConstArray();
@@ -73,7 +73,7 @@ static void save_FixedWidthList(const ScCsvSplits& rSplits)
     Sequence<Any> aValues;
     Any *pProperties;
     Sequence<OUString> aNames { FIXED_WIDTH_LIST };
-    ScLinkConfigItem aItem( OUString( SEP_PATH ) );
+    ScLinkConfigItem aItem( SEP_PATH );
 
     aValues = aItem.GetProperties( aNames );
     pProperties = aValues.getArray();


More information about the Libreoffice-commits mailing list