diff options
author | tastytea | 2020-01-20 02:46:00 +0100 |
---|---|---|
committer | tastytea | 2020-01-20 02:46:00 +0100 |
commit | 9523de87888c2a2fd6ff978a9e59d5e8f5c2175e (patch) | |
tree | ed9f5a7dedc52c7996f064b1394f23f7426ea6e6 /src | |
parent | 2c13f03a1cf1877047e671f84e4647aa411e780d (diff) | |
download | mastodonpp-9523de87888c2a2fd6ff978a9e59d5e8f5c2175e.tar mastodonpp-9523de87888c2a2fd6ff978a9e59d5e8f5c2175e.tar.gz mastodonpp-9523de87888c2a2fd6ff978a9e59d5e8f5c2175e.zip |
Mark buffer variables const.
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 77e7ad0..1b19833 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -70,7 +70,7 @@ string Connection::get_new_stream_contents() { buffer_mutex.lock(); auto &buffer{get_buffer()}; - auto buffer_copy{buffer}; + const string buffer_copy{buffer}; buffer.clear(); buffer_mutex.unlock(); return buffer_copy; |