diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-29 17:36:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-29 17:36:44 +0000 |
commit | 4cf90b042594f1a40a123f082ab3f3c37b40ee01 (patch) | |
tree | e37dad1bd8a1ac9d9a01e3b9f27c2c36bc9ddb41 /include/m_system_cpp.h | |
parent | 900cb3561405d385c70fc57c94e46bc1e4fa178b (diff) |
these methods should have been declared as const
git-svn-id: http://svn.miranda-ng.org/main/trunk@10335 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 6 |
1 files 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<class T> 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); }
|