From 4cf90b042594f1a40a123f082ab3f3c37b40ee01 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Aug 2014 17:36:44 +0000 Subject: these methods should have been declared as const git-svn-id: http://svn.miranda-ng.org/main/trunk@10335 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_system_cpp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index de6f6e6789..c0b324f02b 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -165,9 +165,9 @@ template struct LIST return (!List_GetIndex((SortedList*)this, p, &idx)) ? -1 : idx; } - __inline void destroy(void) { List_Destroy((SortedList*)this); } - __inline T* find(T *p) { return (T*)List_Find((SortedList*)this, p); } - __inline int indexOf(T *p) { return List_IndexOf((SortedList*)this, p); } + __inline void destroy(void) { List_Destroy((SortedList*)this); } + __inline T* find(T *p) const { return (T*)List_Find((SortedList*)this, p); } + __inline int indexOf(T *p) const { return List_IndexOf((SortedList*)this, p); } __inline int insert(T *p, int idx) { return List_Insert((SortedList*)this, p, idx); } __inline int remove(int idx) { return List_Remove((SortedList*)this, idx); } -- cgit v1.2.3