summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-16 08:44:45 +0200
committerEike Rathke <erack@redhat.com>2016-05-19 13:06:09 +0000
commita656be64e21fd0ec5e12d34a47e2daf777e04b9b (patch)
treef0e47200d04194bee9746ccb200c86e5726ea9a0 /sc
parent874431bcd18ea08269f03831486f3f3b749eee36 (diff)
clang-tidy misc-unused-raii
Change-Id: Id97291511efbaa304f25da3ae5700604b574d165 Reviewed-on: https://gerrit.libreoffice.org/25027 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column.cxx2
-rw-r--r--sc/source/core/data/formulacell.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 6389b1c63955..80a0d7944e12 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2173,7 +2173,7 @@ class UpdateRefOnNonCopy : public std::unary_function<sc::FormulaGroupEntry, voi
if (aRes.mbReferenceModified || aRes.mbNameModified || bRecalcOnMove)
{
- sc::AutoCalcSwitch(mpCxt->mrDoc, false);
+ sc::AutoCalcSwitch aACSwitch(mpCxt->mrDoc, false);
if (aRes.mbNameModified)
recompileTokenArray(*pTop);
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index fefde27b1269..ec4ed8ad9757 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3225,7 +3225,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
if (bNeedDirty)
{ // Cut off references, invalid or similar?
- sc::AutoCalcSwitch(*pDocument, false);
+ sc::AutoCalcSwitch aACSwitch(*pDocument, false);
SetDirty();
}
@@ -3285,7 +3285,7 @@ bool ScFormulaCell::UpdateReferenceOnCopy(
if (bNeedDirty)
{ // Cut off references, invalid or similar?
- sc::AutoCalcSwitch(*pDocument, false);
+ sc::AutoCalcSwitch aACSwitch(*pDocument, false);
SetDirty();
}