]> git.stg.codes - stg.git/blobdiff - tests/testadmin.h
Add explicit casts for reconnect-on-tariff-change tests to shut up gcc
[stg.git] / tests / testadmin.h
index 2175dbb665f479f29e653dc7d700e2031af29de0..bc11daa914612c13d5e257f7ec6ef3ad78c8c30b 100644 (file)
@@ -5,14 +5,7 @@
 
 class TEST_ADMIN : public ADMIN {
     public:
-        TEST_ADMIN() : priv(0xffFFffFF) {}
-
-        ADMIN & operator=(const ADMIN &) { return *this; }
-        ADMIN & operator=(const ADMIN_CONF &) { return *this; }
-        bool    operator==(const ADMIN & /*rhs*/) const { return true; }
-        bool    operator!=(const ADMIN & /*rhs*/) const { return false; }
-        bool    operator<(const ADMIN & /*rhs*/) const { return true; }
-        bool    operator<=(const ADMIN & /*rhs*/) const { return true; }
+        TEST_ADMIN() : priv(0xffFF), ip(0) {}
 
         const std::string & GetPassword() const { return password; }
         const std::string & GetLogin() const { return login; }