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/StringUtil.cpp | |
| 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/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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())); |
