Tue, 20 Aug 2013 21:15:12 +0300
removed broken config type check
src/config.cpp | file | annotate | diff | comparison | revisions | |
src/config.h | file | annotate | diff | comparison | revisions |
--- a/src/config.cpp Tue Aug 20 21:13:59 2013 +0300 +++ b/src/config.cpp Tue Aug 20 21:15:12 2013 +0300 @@ -45,11 +45,7 @@ } Config::Config (const char* name, const char* defstring) : - name (name), m_defstring (defstring) -{ - if (getType() != None) - fatal (fmt ("Config `%1` is of unknown type!", name)); -} + name (name), m_defstring (defstring) {} // ============================================================================= // -----------------------------------------------------------------------------
--- a/src/config.h Tue Aug 20 21:13:59 2013 +0300 +++ b/src/config.h Tue Aug 20 21:15:12 2013 +0300 @@ -39,7 +39,6 @@ class Config { public: enum Type { - None, Int, String, Float, @@ -51,7 +50,7 @@ const char* name; virtual Type getType() const { - return None; + return (Type) 0; } str toString() const;