sc/source/core/data/document.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 405ab3483498efa55cda9ebf54103a5e3e097627 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue May 10 21:13:12 2022 +0100 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed May 11 06:23:05 2022 +0200 Avoid useless default construction Change-Id: I6b4cb48ab4e8f22b30a92fcf7d1de94b5cb9f34a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134068 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 1675f21a6afa..c730710bf081 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -261,7 +261,6 @@ bool ScDocument::GetCodeName( SCTAB nTab, OUString& rName ) const bool ScDocument::GetTable( const OUString& rName, SCTAB& rTab ) const { - OUString aUpperName; static OUString aCacheName, aCacheUpperName; assert(!IsThreadedGroupCalcInProgress()); @@ -271,7 +270,7 @@ bool ScDocument::GetTable( const OUString& rName, SCTAB& rTab ) const // surprisingly slow ... aCacheUpperName = ScGlobal::getCharClass().uppercase(rName); } - aUpperName = aCacheUpperName; + const OUString aUpperName = aCacheUpperName; for (SCTAB i=0; i< static_cast<SCTAB>(maTabs.size()); i++) if (maTabs[i])