diff options
Diffstat (limited to 'src/frontend/mame/ui/utils.cpp')
-rw-r--r-- | src/frontend/mame/ui/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/utils.cpp b/src/frontend/mame/ui/utils.cpp index 6b3592c093a..b706e14682a 100644 --- a/src/frontend/mame/ui/utils.cpp +++ b/src/frontend/mame/ui/utils.cpp @@ -81,7 +81,7 @@ char* chartrimcarriage(char str[]) const char* strensure(const char* s) { - return (s == nullptr) ? "" : s; + return s == nullptr ? "" : s; } int getprecisionchr(const char* s) @@ -100,11 +100,11 @@ std::vector<std::string> tokenize(const std::string &text, char sep) std::size_t start = 0, end = 0; while ((end = text.find(sep, start)) != std::string::npos) { - auto temp = text.substr(start, end - start); + std::string temp = text.substr(start, end - start); if (!temp.empty()) tokens.push_back(temp); start = end + 1; } - auto temp = text.substr(start); + std::string temp = text.substr(start); if (!temp.empty()) tokens.push_back(temp); return tokens; } |