solved some warnings

This commit is contained in:
Dhanya Maliakal
2017-07-27 12:08:12 +02:00
parent 915fd41bf6
commit 77dc4d3d77
4 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ class qDebugStream : public basic_streambuf<char> {
public:
qDebugStream(ostream &stream, QWidget* w) : m_stream(stream), log_window(w) {
mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_init(&mutex, NULL);
m_old_buf = stream.rdbuf();
stream.rdbuf(this);
}