summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/documen7.cxx10
-rw-r--r--sc/source/core/data/formulacell.cxx3
2 files changed, 2 insertions, 11 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index eaaaf285c4b8..dbbbbcae7883 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -318,11 +318,6 @@ void ScDocument::RemoveFromFormulaTree( ScFormulaCell* pCell )
}
}
-bool ScDocument::IsInFormulaTree( const ScFormulaCell* pCell ) const
-{
- return pCell->GetPrevious() || pFormulaTree == pCell;
-}
-
void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSetAllDirty )
{
OSL_ENSURE( !IsCalculatingFormulaTree(), "CalcFormulaTree recursion" );
@@ -498,11 +493,6 @@ void ScDocument::RemoveFromFormulaTrack( ScFormulaCell* pCell )
--nFormulaTrackCount;
}
-bool ScDocument::IsInFormulaTrack( const ScFormulaCell* pCell ) const
-{
- return pCell->GetPreviousTrack() || pFormulaTrack == pCell;
-}
-
void ScDocument::FinalTrackFormulas( SfxHintId nHintId )
{
mbTrackFormulasPending = false;
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 44f0f7acdf2b..195fa15286d0 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -4614,7 +4614,8 @@ bool ScFormulaCell::InterpretFormulaGroup(SCROW nStartOffset, SCROW nEndOffset)
if (mxGroup->meCalcState == sc::GroupCalcDisabled)
{
- aScope.addMessage("group calc disabled");
+ static constexpr OUStringLiteral MESSAGE = u"group calc disabled";
+ aScope.addMessage(MESSAGE);
return false;
}