diff options
| author | David Korth <gerbilsoft@gerbilsoft.com> | 2019-09-14 16:40:34 -0400 |
|---|---|---|
| committer | David Korth <gerbilsoft@gerbilsoft.com> | 2019-12-29 23:45:02 -0500 |
| commit | c2dd2e8a2e202b3cb63023306569d4f26e293adb (patch) | |
| tree | a555c0cec94121ef93a0861e2ce5c342f525a339 /Source/Core/Common | |
| parent | 6e549bb6689d967edf4e16f061500f696f35906c (diff) | |
Use std::istringstream or std::ostringstream instead of std::stringstream where possible.
This removes std::iostream from the inheritance chain, which reduces
overhead slightly.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Debug/Watches.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Debug/Watches.cpp b/Source/Core/Common/Debug/Watches.cpp index 9114f2e83d..a17551f77c 100644 --- a/Source/Core/Common/Debug/Watches.cpp +++ b/Source/Core/Common/Debug/Watches.cpp @@ -104,7 +104,7 @@ std::vector<std::string> Watches::SaveToStrings() const std::vector<std::string> watches; for (const auto& watch : m_watches) { - std::stringstream ss; + std::ostringstream ss; ss << std::hex << watch.address << " " << watch.name; watches.push_back(ss.str()); } diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 7955c81fdf..3eeb6d04fe 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -398,7 +398,7 @@ std::string JoinStrings(const std::vector<std::string>& strings, const std::stri if (strings.empty()) return ""; - std::stringstream res; + std::ostringstream res; std::copy(strings.begin(), strings.end(), std::ostream_iterator<std::string>(res, delimiter.c_str())); |
