diff options
author | Mihai Moldovan <ionic@ionic.de> | 2017-06-30 22:37:13 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2017-10-27 08:45:42 +0200 |
commit | ca08512cff4b3d3340a55036ee151fac8f145255 (patch) | |
tree | 7f34c8a8908c75a6dfc6d8b4eded9ada92a40df1 /nxcomp | |
parent | d960ec2cb0a6f9e0d35cd034d27a5fdd88a4307e (diff) | |
download | nx-libs-ca08512cff4b3d3340a55036ee151fac8f145255.tar.gz nx-libs-ca08512cff4b3d3340a55036ee151fac8f145255.tar.bz2 nx-libs-ca08512cff4b3d3340a55036ee151fac8f145255.zip |
nxcomp/Log.h: also clear the buffer after setting it to an empty string.
Diffstat (limited to 'nxcomp')
-rw-r--r-- | nxcomp/src/Log.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } |