replace lock with lock_guard
Change-Id: I778fd472546a0287f068f04569a67315045ee901
diff --git a/src/chat-dialog-backend.hpp b/src/chat-dialog-backend.hpp
index f8133f7..26f588b 100644
--- a/src/chat-dialog-backend.hpp
+++ b/src/chat-dialog-backend.hpp
@@ -11,12 +11,12 @@
#define CHRONOCHAT_CHAT_DIALOG_BACKEND_HPP
#include <QThread>
-#include <QMutex>
#ifndef Q_MOC_RUN
#include "common.hpp"
#include "chatroom-info.hpp"
#include "chatbuf.pb.h"
+#include <mutex>
#include <socket.hpp>
#endif
@@ -165,7 +165,7 @@
BackendRoster m_roster; // User roster
- QMutex m_mutex;
+ std::mutex m_mutex;
bool m_shouldResume;
};