From ca08512cff4b3d3340a55036ee151fac8f145255 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Fri, 30 Jun 2017 22:37:13 +0200 Subject: nxcomp/Log.h: also clear the buffer after setting it to an empty string. --- nxcomp/src/Log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nxcomp') diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h index c3ddd9568..32779bcaa 100644 --- a/nxcomp/src/Log.h +++ b/nxcomp/src/Log.h @@ -214,7 +214,8 @@ class NXLog pthread_mutex_lock(&output_lock_); (*stream()) << str; pthread_mutex_unlock(&output_lock_); - pdt->buffer->str(""); + pdt->buffer->str(std::string()); + pdt->buffer->clear(); } } -- cgit v1.2.3