From dd8d5e5795358d732a9f7a8af7c35f662321e332 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Apr 2019 11:18:21 +0200 Subject: 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 --- sc/source/filter/excel/excform.cxx | 4 ++-- sc/source/filter/excel/excform8.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sc/source/filter/excel') 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 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& 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& 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& rpArray, XclI if (nFormulaLen == 0) { - aPool.Store(OUString("-/-")); + aPool.Store("-/-"); aPool >> aStack; rpArray = aPool.GetTokenArray( aStack.Get()); return; -- cgit