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/docsh.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/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 1eea60ecd5d4..19116b128b5e 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -3102,10 +3102,8 @@ void ScDocShell::UseSheetSaveEntries() { // if no positions were set (for example, export to other format), // reset all "valid" flags - for (nTab = 0; nTab < nTabCount; ++nTab) - if (aDocument.IsStreamValid(nTab)) - aDocument.SetStreamValid(nTab, false); + aDocument.SetStreamValid(nTab, false); } } } |