summaryrefslogtreecommitdiff
path: root/vcl/source/uitest
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-23 21:20:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-23 23:48:15 +0200
commitdbd7189f970e52f664b4bb3f96b397c1035b9ec8 (patch)
tree3b044fba6b31201266b711cdba69cc7ba490f473 /vcl/source/uitest
parent72b50be0197159c5afc5da4daf01ba303519b14a (diff)
cid#1452394 silence Using invalid iterator
Change-Id: Ia4851946f8c05d36f194468b931c2fcb13fb4684 Reviewed-on: https://gerrit.libreoffice.org/78046 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r--vcl/source/uitest/logger.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index ccbf44fda51c..861cc4f4fb8e 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -337,6 +337,8 @@ OUString GetValueInMapWithIndex(const std::map<OUString, OUString>& rParameters,
for (; itr != rParameters.end() && j < index; ++itr, ++j)
;
+ assert(itr != rParameters.end());
+
return itr->second;
}
@@ -349,6 +351,8 @@ OUString GetKeyInMapWithIndex(const std::map<OUString, OUString>& rParameters, s
for (; itr != rParameters.end() && j < index; ++itr, ++j)
;
+ assert(itr != rParameters.end());
+
return itr->first;
}
}