Use std::istringstream or std::ostringstream instead of std::stringstream where possible.

This removes std::iostream from the inheritance chain, which reduces
overhead slightly.
This commit is contained in:
David Korth
2019-09-14 16:40:34 -04:00
parent 6e549bb668
commit c2dd2e8a2e
14 changed files with 20 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ void MemoryWatcher::ParseLine(const std::string& line)
m_values[line] = 0;
m_addresses[line] = std::vector<u32>();
std::stringstream offsets(line);
std::istringstream offsets(line);
offsets >> std::hex;
u32 offset;
while (offsets >> offset)
@@ -76,7 +76,7 @@ u32 MemoryWatcher::ChasePointer(const std::string& line)
std::string MemoryWatcher::ComposeMessages()
{
std::stringstream message_stream;
std::ostringstream message_stream;
message_stream << std::hex;
for (auto& entry : m_values)