[glibmm] Glib::HelperList: fix iterator check in operator[]
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Glib::HelperList: fix iterator check in operator[]
- Date: Thu, 9 Jul 2015 13:28:00 +0000 (UTC)
commit d6f7c5f69a8ee5935de75c87378b873967119100
Author: Maks Naumov <maksqwe1 ukr net>
Date: Thu Jul 9 15:24:13 2015 +0200
Glib::HelperList: fix iterator check in operator[]
Signed-off-by: Maks Naumov <maksqwe1 ukr net> Bug #751530.
glib/glibmm/helperlist.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/glibmm/helperlist.h b/glib/glibmm/helperlist.h
index 1955be1..d9a1c95 100644
--- a/glib/glibmm/helperlist.h
+++ b/glib/glibmm/helperlist.h
@@ -117,7 +117,7 @@ public:
{
size_type j = 0;
iterator i;
- for(i = begin(), j = 0; i != end(), j < l; ++i, ++j)
+ for(i = begin(), j = 0; i != end() && j < l; ++i, ++j)
;
return (*i);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]