diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-18 18:04:57 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-18 21:09:44 +0100 |
commit | 4714b371809fb0e65073cbc95b4aafedb2c6a9ca (patch) | |
tree | 25fe03a5200c27d2bbf49c7f31c04405a8606e35 | |
parent | 785aa638acb920316fe78bedab3a512fb384535a (diff) |
sc: move isFormulaWithoutError where is used
Change-Id: I846e1621b0ab82a921a12a0f1440ccb0e6c75215
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142951
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sc/qa/unit/helper/qahelper.cxx | 9 | ||||
-rw-r--r-- | sc/qa/unit/helper/qahelper.hxx | 6 | ||||
-rw-r--r-- | sc/qa/unit/helper/shared_test_impl.hxx | 9 |
3 files changed, 9 insertions, 15 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index a4af811db503..73250ba299e1 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -507,15 +507,6 @@ bool checkOutput( return bResult; } -bool isFormulaWithoutError(ScDocument& rDoc, const ScAddress& rPos) -{ - ScFormulaCell* pFC = rDoc.GetFormulaCell(rPos); - if (!pFC) - return false; - - return pFC->GetErrCode() == FormulaError::NONE; -} - OUString toString( ScDocument& rDoc, const ScAddress& rPos, ScTokenArray& rArray, formula::FormulaGrammar::Grammar eGram) { diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index e1e7ad4652e8..dd41622a579c 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -120,12 +120,6 @@ SCQAHELPER_DLLPUBLIC bool checkOutput( const std::vector<std::vector<const char*>>& aCheck, const char* pCaption ); /** - * Check if the cell at specified position is a formula cell that doesn't - * have an error value. - */ -SCQAHELPER_DLLPUBLIC bool isFormulaWithoutError(ScDocument& rDoc, const ScAddress& rPos); - -/** * Convert formula token array to a formula string. */ SCQAHELPER_DLLPUBLIC OUString toString( diff --git a/sc/qa/unit/helper/shared_test_impl.hxx b/sc/qa/unit/helper/shared_test_impl.hxx index 60aa4ae41571..33b6fe06a0f5 100644 --- a/sc/qa/unit/helper/shared_test_impl.hxx +++ b/sc/qa/unit/helper/shared_test_impl.hxx @@ -154,6 +154,15 @@ void testColorScale3Entry_Impl(const ScDocument& rDoc) } } +bool isFormulaWithoutError(ScDocument& rDoc, const ScAddress& rPos) +{ + ScFormulaCell* pFC = rDoc.GetFormulaCell(rPos); + if (!pFC) + return false; + + return pFC->GetErrCode() == FormulaError::NONE; +} + void testFunctionsExcel2010_Impl( ScDocument& rDoc ) { // Original test case document is functions-excel-2010.xlsx |