summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-05 14:15:19 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-06 22:14:43 +0200
commitef1337b7326841fac4cf03d42c8172e57566dc06 (patch)
tree0210ecad0df993c5ebc512497afed49cf04df5cd
parent95ef9610aaabde34fac54574d60427c1e619659b (diff)
cid#1545304 silence Using invalid iterator
Change-Id: I653c9b9313a854646028c7b2d9982c1233377ea0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170045 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--cui/source/customize/macropg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index b042ffb71668..fa4ef4663255 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -486,12 +486,14 @@ void SvxMacroTabPage_::GenericHandler_Impl(const weld::Button* pBtn)
if (bAppEvents)
{
EventsHash::iterator h_it = m_appEventsHash.find(sEventName);
+ assert(h_it != m_appEventsHash.end());
h_it->second.first = sEventType;
h_it->second.second = sEventURL;
}
else
{
EventsHash::iterator h_it = m_docEventsHash.find(sEventName);
+ assert(h_it != m_docEventsHash.end());
h_it->second.first = sEventType;
h_it->second.second = sEventURL;
}