diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-29 11:18:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-30 08:43:51 +0200 |
commit | dd8d5e5795358d732a9f7a8af7c35f662321e332 (patch) | |
tree | 9983c2a5f0bc3f2c29133aa57e4ceb510eb68a11 /sc/source/filter/excel | |
parent | 22f2cf3ccc6d0c9ba2c2860735e789d6b3a25f72 (diff) |
improve loplugin:stringconstant
to find more places we can elide the OUString() constructor at call
sites
Change-Id: Ie09f3c61f2c4b4959c97dc98ebcbaf7c51d5d713
Reviewed-on: https://gerrit.libreoffice.org/71514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel')
-rw-r--r-- | sc/source/filter/excel/excform.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/excel/excform8.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx index 6e3d4ed93362..74718130b7b4 100644 --- a/sc/source/filter/excel/excform.cxx +++ b/sc/source/filter/excel/excform.cxx @@ -195,7 +195,7 @@ ExcelToSc::~ExcelToSc() std::unique_ptr<ScTokenArray> ExcelToSc::GetDummy() { - aPool.Store( OUString("Dummy()") ); + aPool.Store( "Dummy()" ); aPool >> aStack; return aPool.GetTokenArray( aStack.Get()); } @@ -221,7 +221,7 @@ ConvErr ExcelToSc::Convert( std::unique_ptr<ScTokenArray>& pResult, XclImpStream if( nFormulaLen == 0 ) { - aPool.Store( OUString("-/-") ); + aPool.Store( "-/-" ); aPool >> aStack; pResult = aPool.GetTokenArray( aStack.Get()); return ConvErr::OK; diff --git a/sc/source/filter/excel/excform8.cxx b/sc/source/filter/excel/excform8.cxx index 1aea200bd1c0..7965c1a55c02 100644 --- a/sc/source/filter/excel/excform8.cxx +++ b/sc/source/filter/excel/excform8.cxx @@ -149,7 +149,7 @@ ConvErr ExcelToSc8::Convert( std::unique_ptr<ScTokenArray>& rpTokArray, XclImpSt if( nFormulaLen == 0 ) { - aPool.Store( OUString( "-/-" ) ); + aPool.Store( "-/-" ); aPool >> aStack; rpTokArray = aPool.GetTokenArray( aStack.Get()); return ConvErr::OK; @@ -1296,7 +1296,7 @@ void ExcelToSc8::ConvertExternName( std::unique_ptr<ScTokenArray>& rpArray, XclI if (nFormulaLen == 0) { - aPool.Store(OUString("-/-")); + aPool.Store("-/-"); aPool >> aStack; rpArray = aPool.GetTokenArray( aStack.Get()); return; |