diff --git a/aegisub/libaegisub/include/libaegisub/option_value.h b/aegisub/libaegisub/include/libaegisub/option_value.h index 2156e1f7b..bd721ffe5 100644 --- a/aegisub/libaegisub/include/libaegisub/option_value.h +++ b/aegisub/libaegisub/include/libaegisub/option_value.h @@ -105,11 +105,11 @@ public: virtual void GetListColour(std::vector &out) const { throw ListTypeError("colour"); } virtual void GetListBool(std::vector &out) const { throw ListTypeError("string"); } - virtual void SetListString(const std::vector val) { throw ListTypeError("string", " set "); } - virtual void SetListInt(const std::vector val) { throw ListTypeError("int", " set "); } - virtual void SetListDouble(const std::vector val) { throw ListTypeError("double", " set "); } - virtual void SetListColour(const std::vector val) { throw ListTypeError("colour", " set "); } - virtual void SetListBool(const std::vector val) { throw ListTypeError("string", " set "); } + virtual void SetListString(const std::vector& val) { throw ListTypeError("string", " set "); } + virtual void SetListInt(const std::vector& val) { throw ListTypeError("int", " set "); } + virtual void SetListDouble(const std::vector& val) { throw ListTypeError("double", " set "); } + virtual void SetListColour(const std::vector& val) { throw ListTypeError("colour", " set "); } + virtual void SetListBool(const std::vector& val) { throw ListTypeError("string", " set "); } virtual void GetDefaultListString(std::vector &out) const { throw ListTypeError("string"); } virtual void GetDefaultListInt(std::vector &out) const { throw ListTypeError("int"); } @@ -169,7 +169,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; } \