diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 09:49:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 13:05:39 +0200 |
commit | db12ecd5d77670db5a61fb16b9372d7fd7da858c (patch) | |
tree | eb9c7c44624a1686b04af8e15d369652bbfe03d1 /sc/source/ui/docshell/docsh4.cxx | |
parent | f2de8a282a131f0294c41fa994083df47d5d61f0 (diff) |
simplify calls to IsStreamValid/SetStreamValid
just add a short-circuit check inside SetStreamValid, and we can
simplify all of the call sites
Change-Id: Ib3d19455c60fe9569faf548b1fefbc274d03574c
Reviewed-on: https://gerrit.libreoffice.org/42267
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 9dc6b4bd97af..2067d04761e7 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1284,8 +1284,7 @@ void ScDocShell::DoHardRecalc() // use hard recalc also to disable stream-copying of all sheets // (somewhat consistent with charts) for (SCTAB nTab=0; nTab<nTabCount; nTab++) - if (aDocument.IsStreamValid(nTab)) - aDocument.SetStreamValid(nTab, false); + aDocument.SetStreamValid(nTab, false); PostPaintGridAll(); } |