diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-11 18:19:21 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-11 20:12:31 +0100 |
commit | 06ca3d89f4b9761f1bfea66a93f0fc7e0bab71a6 (patch) | |
tree | 1c977402e7b76e9662b9e44b4881f517a4b18018 /sc/source/ui/unoobj/cellsuno.cxx | |
parent | be73c64d11fd330f76b08fc75354164aba3ecc88 (diff) |
Drop ScGlobal::GetEmptyOUString() and EMPTY_OUSTRING
OUString default ctor already uses a static instance
(through rtl_uString_new), no need to have another
module-specific static.
Commit d8037ae18a297229d1b79f8f76331abfd548350d had
removed its sw counterpart some time ago.
Change-Id: I140fe13bc1f6b0cbe188e83e602fdebe995e467a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125061
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index b7f51d6e0ac7..9364a93139e1 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1313,7 +1313,7 @@ static OUString lcl_GetInputString( ScDocument& rDoc, const ScAddress& rPos, boo { ScRefCellValue aCell(rDoc, rPos); if (aCell.isEmpty()) - return EMPTY_OUSTRING; + return OUString(); OUString aVal; @@ -4790,7 +4790,7 @@ OUString SAL_CALL ScCellRangeObj::getArrayFormula() ScDocShell* pDocSh = GetDocShell(); if (!pDocSh) - return EMPTY_OUSTRING; + return OUString(); ScDocument& rDoc = pDocSh->GetDocument(); ScRefCellValue aCell1(rDoc, aRange.aStart); @@ -4807,7 +4807,7 @@ OUString SAL_CALL ScCellRangeObj::getArrayFormula() return pFCell1->GetFormula(); // it doesn't matter from which cell } } - return EMPTY_OUSTRING; + return OUString(); } void ScCellRangeObj::SetArrayFormula_Impl(const OUString& rFormula, @@ -4900,7 +4900,7 @@ void SAL_CALL ScCellRangeObj::setArrayTokens( const uno::Sequence<sheet::Formula // Actually GRAM_API is a don't-care here because of the token // array being set, it fits with other API compatibility grammars // though. - pDocSh->GetDocFunc().EnterMatrix( aRange, nullptr, &aTokenArray, EMPTY_OUSTRING, true, true, EMPTY_OUSTRING, formula::FormulaGrammar::GRAM_API ); + pDocSh->GetDocFunc().EnterMatrix( aRange, nullptr, &aTokenArray, OUString(), true, true, OUString(), formula::FormulaGrammar::GRAM_API ); } else { |