aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-04-17 11:46:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-04-17 11:46:51 +0000
commit936231df33baf5f16adb58b3e19de30332aae398 (patch)
tree32d761552089dc1250ae59487baca7e9a46d9d22
parente65ec4c939982c4dc7d257f6adfd1b8ab87e1179 (diff)
downloadenigma2-936231df33baf5f16adb58b3e19de30332aae398.tar.gz
enigma2-936231df33baf5f16adb58b3e19de30332aae398.zip
make some operator functions const
-rw-r--r--lib/base/eptrlist.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/base/eptrlist.h b/lib/base/eptrlist.h
index 7e7a45a2..75123053 100644
--- a/lib/base/eptrlist.h
+++ b/lib/base/eptrlist.h
@@ -58,8 +58,8 @@ public:
inline const T* last() const;
// added operator methods
- inline operator bool();
- inline bool operator!();
+ inline operator bool() const;
+ inline bool operator!() const;
// added compare struct ... to sort
struct less;
@@ -623,14 +623,14 @@ struct ePtrList<T>::less
/////////////////// ePtrList operator bool ////////////////////
template <class T>
-ePtrList<T>::operator bool()
+ePtrList<T>::operator bool() const
{
// Returns a bool that contains true, when the list is NOT empty otherwise false
return !std::list<T*>::empty();
}
template <class T>
-bool ePtrList<T>::operator!()
+bool ePtrList<T>::operator!() const
{
// Returns a bool that contains true, when the list is empty otherwise false
return std::list<T*>::empty();
@@ -687,8 +687,8 @@ public:
inline const T* last() const;
// added operator methods
- inline operator bool();
- inline bool operator!();
+ inline operator bool() const;
+ inline bool operator!() const;
// added compare struct ... to sort
struct less;
@@ -1233,14 +1233,14 @@ struct eSmartPtrList<T>::less
/////////////////// eSmartPtrList operator bool ////////////////////
template <class T>
-eSmartPtrList<T>::operator bool()
+eSmartPtrList<T>::operator bool() const
{
// Returns a bool that contains true, when the list is NOT empty otherwise false
return !std::list<T>::empty();
}
template <class T>
-bool eSmartPtrList<T>::operator!()
+bool eSmartPtrList<T>::operator!() const
{
// Returns a bool that contains true, when the list is empty otherwise false
return std::list<T>::empty();