[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Tue Feb 16 01:19:39 UTC 2016
sc/source/ui/docshell/docsh4.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 2692506683ea76b3c8f8e080dfaf5a49c709c7c5
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Feb 16 00:54:25 2016 +0100
declare variable when using it
Change-Id: I7df457dfa3f1d36641c577f353a50e03c37cb09b
Reviewed-on: https://gerrit.libreoffice.org/22382
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 3ca38ac..e84b73f 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1256,9 +1256,8 @@ void ScDocShell::DoHardRecalc( bool /* bApi */ )
// set notification flags for "calculate" event (used in SFX_HINT_DATACHANGED broadcast)
// (might check for the presence of any formulas on each sheet)
SCTAB nTabCount = aDocument.GetTableCount();
- SCTAB nTab;
if (aDocument.HasAnySheetEventScript( ScSheetEventId::CALCULATE, true )) // search also for VBA handler
- for (nTab=0; nTab<nTabCount; nTab++)
+ for (SCTAB nTab=0; nTab<nTabCount; nTab++)
aDocument.SetCalcNotification(nTab);
// CalcAll doesn't broadcast value changes, so SC_HINT_CALCALL is broadcasted globally
@@ -1268,7 +1267,7 @@ void ScDocShell::DoHardRecalc( bool /* bApi */ )
// use hard recalc also to disable stream-copying of all sheets
// (somewhat consistent with charts)
- for (nTab=0; nTab<nTabCount; nTab++)
+ for (SCTAB nTab=0; nTab<nTabCount; nTab++)
if (aDocument.IsStreamValid(nTab))
aDocument.SetStreamValid(nTab, false);
More information about the Libreoffice-commits
mailing list