diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-09-29 14:26:29 +0300 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-11-21 13:49:51 +0530 |
commit | 2fda62d190b78a7622fd7195a6a3574956e3b5a3 (patch) | |
tree | 169d6ef7a7b37ac4e8044f2d60e655bbdfbc19a7 /sc/source/core/data/document.cxx | |
parent | 3a991a45a7d3a95c9083336d535f191ef1248e86 (diff) |
Move nInterpretLevel back to ScDocument
Move the calls to increment and decrement it out of InterpretTail(),
to those call sites that aren't reached during parallelized
calculations. Use unique_ptr for pInt in StackCleaner
Change-Id: Ie1bd03dd62aea5f6c71c383df21afff29391dade
Diffstat (limited to 'sc/source/core/data/document.cxx')
-rw-r--r-- | sc/source/core/data/document.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 2f2a0dabe995..2df3f8e10a8b 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -6771,30 +6771,6 @@ ScMutationGuard::~ScMutationGuard() thread_local ScDocumentThreadSpecific ScDocument::maThreadSpecific; -bool ScDocument::IsInInterpreter() const -{ - if (!mbThreadedGroupCalcInProgress) - return maNonThreaded.nInterpretLevel != 0; - else - return maThreadSpecific.nInterpretLevel != 0; -} - -void ScDocument::IncInterpretLevel() -{ - if (!mbThreadedGroupCalcInProgress) - maNonThreaded.nInterpretLevel++; - else - maThreadSpecific.nInterpretLevel++; -} - -void ScDocument::DecInterpretLevel() -{ - if (!mbThreadedGroupCalcInProgress) - maNonThreaded.nInterpretLevel--; - else - maThreadSpecific.nInterpretLevel--; -} - sal_uInt16 ScDocument::GetMacroInterpretLevel() { if (!mbThreadedGroupCalcInProgress) @@ -6873,7 +6849,6 @@ ScRecursionHelper& ScDocument::GetRecursionHelper() void ScDocumentThreadSpecific::SetupFromNonThreadedData(const ScDocumentThreadSpecific& rNonThreadedData) { - nInterpretLevel = rNonThreadedData.nInterpretLevel; nMacroInterpretLevel = rNonThreadedData.nMacroInterpretLevel; nInterpreterTableOpLevel = rNonThreadedData.nInterpreterTableOpLevel; @@ -6883,7 +6858,6 @@ void ScDocumentThreadSpecific::SetupFromNonThreadedData(const ScDocumentThreadSp void ScDocumentThreadSpecific::MergeBackIntoNonThreadedData(ScDocumentThreadSpecific& rNonThreadedData) { - assert(nInterpretLevel == rNonThreadedData.nInterpretLevel); assert(nMacroInterpretLevel == rNonThreadedData.nMacroInterpretLevel); assert(nInterpreterTableOpLevel == rNonThreadedData.nInterpreterTableOpLevel); |