mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-14 07:01:16 +02:00
util/string: use string_view in LineReader
Co-authored-by: Hodlinator <172445034+hodlinator@users.noreply.github.com>
This commit is contained in:
@@ -191,7 +191,7 @@ bool TorControlConnection::ProcessBuffer()
|
||||
// Parse: <code><separator><data>
|
||||
// <status>(-|+| )<data>
|
||||
m_message.code = ToIntegral<int>(line->substr(0, 3)).value_or(0);
|
||||
m_message.lines.push_back(line->substr(4));
|
||||
m_message.lines.emplace_back(line->substr(4));
|
||||
char separator = (*line)[3]; // '-', '+', or ' '
|
||||
|
||||
if (separator == ' ') {
|
||||
|
||||
Reference in New Issue
Block a user