lib/base/eptrlist.h: fix tabs
[enigma2.git] / lib / base / eptrlist.h
index 7e7a45a2c3580bc2c1f59fbd0b026c666248893f..0da46daa49ca47759531616f2b0df746c3365fe7 100644 (file)
@@ -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;
@@ -164,7 +164,7 @@ public:
                // returns a pointer to this new vector ( the reserved memory must deletet from the receiver !! )
                std::vector<T>* v=new std::vector<T>();
                v->reserve( std::list<T>::size() );
-    for ( std_list_T_iterator it( std::list<T*>::begin() ); it != std::list<T*>::end(); it++)
+               for ( std_list_T_iterator it( std::list<T*>::begin() ); it != std::list<T*>::end(); it++)
                        v->push_back( **it );
 
                return v;
@@ -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();