summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-01-17 15:38:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-01-17 18:13:03 +0100
commit5bd90f7f5852056342f1a81a1285b474d468eadd (patch)
tree9046c78e5124799629be39939c31f6d0ec56af60 /sfx2/source/view
parent79e471dc116f0b662e48d915d395d398057d137f (diff)
cppcheck: derefInvalidIteratorRedundantCheck (sfx2/classificationhelper)
Change-Id: I25fc7eac5b323e5918f03d8bfb410ca6a860219d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109476 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/classificationhelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 523fe75571bb..85e7f3d55dde 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -700,14 +700,14 @@ InfobarType SfxClassificationHelper::GetImpactLevelType()
SfxClassificationCategory& rCategory = itCategory->second;
auto it = rCategory.m_aLabels.find(PROP_PREFIX_INTELLECTUALPROPERTY() + PROP_IMPACTSCALE());
- OUString aScale = it->second;
if (it == rCategory.m_aLabels.end())
return aRet;
+ OUString aScale = it->second;
it = rCategory.m_aLabels.find(PROP_PREFIX_INTELLECTUALPROPERTY() + PROP_IMPACTLEVEL());
- OUString aLevel = it->second;
if (it == rCategory.m_aLabels.end())
return aRet;
+ OUString aLevel = it->second;
// The spec defines two valid scale values: FIPS-199 and UK-Cabinet.
if (aScale == "UK-Cabinet")