1
0
Fork 0

GUI: fixed the weird compile error

This commit is contained in:
mrexodia 2016-10-23 14:57:12 +02:00
parent 86875b70eb
commit d5743b172c
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 2 deletions

View File

@ -1016,9 +1016,8 @@ void Configuration::registerMenuBuilder(MenuBuilder* menu, size_t count)
if(std::get<1>(i) == 0 && strcmp(builder->getId() , id) == 0) if(std::get<1>(i) == 0 && strcmp(builder->getId() , id) == 0)
exists = true; exists = true;
} }
int fuck = count; // workaround for compiling
if(!exists) if(!exists)
NamedMenuBuilders.append(std::make_tuple<void*, int, size_t>((void*)menu, 0, size_t(fuck))); NamedMenuBuilders.append(std::make_tuple<void*, int, size_t>((void*)menu, 0, std::move(count)));
} }
void Configuration::registerMainMenuStringList(QList<QAction*>* menu) void Configuration::registerMainMenuStringList(QList<QAction*>* menu)