Minor fix in variable declaration

This commit is contained in:
lupoDharkael
2017-05-13 01:12:53 +02:00
parent c8f37bad18
commit be6d0f9776

View File

@@ -154,8 +154,7 @@ size_t Button::getButtonBaseSize() {
}
Button::Type Button::getTypeByName(QString s) {
// posible use of bimap???
Button::Type res;
Button::Type res = Button::Type::line;
for (auto it = typeName.begin(); it != typeName.end(); ++it )
if (it->second == s)
res = it->first;