sfx2/source/view/classificationhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5bd90f7f5852056342f1a81a1285b474d468eadd Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Jan 17 15:38:27 2021 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sun Jan 17 18:13:03 2021 +0100 cppcheck: derefInvalidIteratorRedundantCheck (sfx2/classificationhelper) Change-Id: I25fc7eac5b323e5918f03d8bfb410ca6a860219d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109476 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins 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") _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits