summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp2
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;