swap green and red led
[enigma2.git] / lib / service / iservice.h
index 8e3cec6f4ec951382386c91f89eeb7d0d0c541dc..22ffde6fbf7c22f397ed57a61d077d3643af4fce 100644 (file)
@@ -138,6 +138,10 @@ public:
                data[3]=data3;
                data[4]=data4;
        }
+       operator bool() const
+       {
+               return valid();
+       }
 #endif
        eServiceReference(int type, int flags, const std::string &path)
                : type(type), flags(flags), path(path)
@@ -170,10 +174,6 @@ public:
                        return r < 0;
                return path < c.path;
        }
-       operator bool() const
-       {
-               return valid();
-       }
        
        int valid() const
        {