mirror of
https://github.com/stenzek/duckstation.git
synced 2026-11-17 11:34:22 +01:00
Misc: Replace stringstream str() with C++20 move str()
No extra heap allocation/copy.
This commit is contained in:
7 files changed
+37
-37
No files matched your search
@@ -202,7 +202,7 @@ inline std::string ToChars(T value)
|
||||
std::ostringstream ss;
|
||||
ss.imbue(std::locale::classic());
|
||||
ss << value;
|
||||
return ss.str();
|
||||
return std::move(ss).str();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user