summaryrefslogtreecommitdiff
path: root/sql/sql_plist.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_plist.h')
-rw-r--r--sql/sql_plist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_plist.h b/sql/sql_plist.h
index 94e437362a9..8f2aee6bd5f 100644
--- a/sql/sql_plist.h
+++ b/sql/sql_plist.h
@@ -132,11 +132,11 @@ public:
template <typename T, typename B>
class I_P_List_iterator
{
- I_P_List<T, B> *list;
+ const I_P_List<T, B> *list;
T *current;
public:
- I_P_List_iterator(I_P_List<T, B> &a) : list(&a), current(a.first) {}
- I_P_List_iterator(I_P_List<T, B> &a, T* current_arg) : list(&a), current(current_arg) {}
+ I_P_List_iterator(const I_P_List<T, B> &a) : list(&a), current(a.first) {}
+ I_P_List_iterator(const I_P_List<T, B> &a, T* current_arg) : list(&a), current(current_arg) {}
inline void init(I_P_List<T, B> &a)
{
list= &a;