From 579203989b210f1ff6bea83cb0a0471804ddb5d7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 4 Nov 2011 19:42:04 +0000 Subject: [PATCH] Remove pointless explicit empty constructors from OptionValue base classes Originally committed to SVN as r5813. --- aegisub/libaegisub/include/libaegisub/option_value.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aegisub/libaegisub/include/libaegisub/option_value.h b/aegisub/libaegisub/include/libaegisub/option_value.h index bd721ffe5..138c517c5 100644 --- a/aegisub/libaegisub/include/libaegisub/option_value.h +++ b/aegisub/libaegisub/include/libaegisub/option_value.h @@ -56,7 +56,6 @@ protected: } public: - OptionValue() {}; virtual ~OptionValue() {}; @@ -148,9 +147,6 @@ CONFIG_OPTIONVALUE(Bool, bool) class OptionValueList: public OptionValue { friend class ConfigVisitor; -protected: - OptionValueList() {}; - virtual ~OptionValueList() {}; virtual void InsertString(const std::string val) { throw ListTypeError("string", " insert "); } virtual void InsertInt(const int64_t val) { throw ListTypeError("int", " insert "); } virtual void InsertDouble(const double val) { throw ListTypeError("double", " insert "); } @@ -169,7 +165,7 @@ protected: virtual std::string GetString() const { return "";} \ OptionValueList##type_name(std::string member_name): name(member_name) {} \ void GetList##type_name(std::vector &out) const { out = array; } \ - void SetList##type_name(const std::vector& val) { array = val; NotifyChanged(); } \ + void SetList##type_name(const std::vector& val) { array = val; NotifyChanged(); } \ void GetDefaultList##type_name(std::vector &out) const { out = array_default; } \ OptionType GetType() const { return OptionValue::Type_List_##type_name; } \ std::string GetName() const { return name; } \