diff options
Diffstat (limited to 'src/frontend/mame/mame.cpp')
-rw-r--r-- | src/frontend/mame/mame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/mame.cpp b/src/frontend/mame/mame.cpp index cfca1076e9f..000c20033cd 100644 --- a/src/frontend/mame/mame.cpp +++ b/src/frontend/mame/mame.cpp @@ -103,12 +103,12 @@ std::vector<std::string> split(const std::string &text, char sep) std::vector<std::string> tokens; std::size_t start = 0, end = 0; while ((end = text.find(sep, start)) != std::string::npos) { - auto temp = text.substr(start, end - start); - if (!temp.empty()) tokens.push_back(temp); + std::string temp = text.substr(start, end - start); + if (temp != "") tokens.push_back(temp); start = end + 1; } - auto temp = text.substr(start); - if (!temp.empty()) tokens.push_back(temp); + std::string temp = text.substr(start); + if (temp != "") tokens.push_back(temp); return tokens; } |