mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #8233 from JosJuice/stringutil-string-view
StringUtil: Use std::string_view more
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@ -298,7 +299,7 @@ bool PPCSymbolDB::LoadMap(const std::string& filename, bool bad)
|
||||
// Detect two columns with three columns fallback
|
||||
if (column_count == 0)
|
||||
{
|
||||
const std::string stripped_line = StripSpaces(line);
|
||||
const std::string_view stripped_line = StripSpaces(line);
|
||||
if (std::count(stripped_line.begin(), stripped_line.end(), ' ') == 1)
|
||||
column_count = 2;
|
||||
else
|
||||
|
Reference in New Issue
Block a user