Commit 9092f229 authored by Dibe Zackaria's avatar Dibe Zackaria
Browse files

fix: remove auto

parent e8abd6eb
......@@ -719,8 +719,8 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml)
CardInfo *CardNameMap::findByPrefix(const std::string &prefix) {
for (CardNameMap::iterator it = this->begin(); it != this->end(); ++it) {
auto check = std::mismatch(prefix.begin(), prefix.end(), it.key().toStdString().begin())
if (check.first == prefix.end())
if (std::mismatch(prefix.begin(), prefix.end(),
it.key().toStdString().begin()).first == prefix.end())
return it.value();
}
return NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment