mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-28 11:00:44 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user