Fix compiler warning
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 17 Oct 2020 22:56:19 +0000 (00:56 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 17 Oct 2020 22:56:19 +0000 (00:56 +0200)
No functional change.

src/ucioption.cpp

index 4d5690b..597c14f 100644 (file)
@@ -241,7 +241,7 @@ std::ostream& operator<<(std::ostream& os, const OptionsMap& om) {
 Option::Option(const char* v, OnChange f) : type("string"), min(0), max(0), on_change(f)
 { defaultValue = currentValue = v; }
 
-Option::Option(const char* v, const std::vector<std::string>& variants, OnChange f) : type("combo"), min(0), max(0), comboValues(variants), on_change(f)
+Option::Option(const char* v, const std::vector<std::string>& values, OnChange f) : type("combo"), min(0), max(0), comboValues(values), on_change(f)
 { defaultValue = currentValue = v; }
 
 Option::Option(bool v, OnChange f) : type("check"), min(0), max(0), on_change(f)