]> git.stg.codes - stg.git/blobdiff - stglibs/logger.lib/include/stg/logger.h
Ticket 52. Definition of the tariff pointer added to the
[stg.git] / stglibs / logger.lib / include / stg / logger.h
index e8d625a0f105b1f137c9a64514431e8f7b758c2f..5165f0fb7203b540fa69bac94f18564e1768aa8c 100644 (file)
@@ -1,17 +1,17 @@
 #ifndef STG_LOGGER_H
 #define STG_LOGGER_H
 
-#include <pthread.h>
-
 #include <string>
 
+#include <pthread.h>
+
 class STG_LOGGER;
 STG_LOGGER & GetStgLogger();
 //-----------------------------------------------------------------------------
 class STG_LOGGER_LOCKER
 {
 public:
-    STG_LOGGER_LOCKER(pthread_mutex_t * m) : mutex(m) { pthread_mutex_lock(mutex); }
+    explicit STG_LOGGER_LOCKER(pthread_mutex_t * m) : mutex(m) { pthread_mutex_lock(mutex); }
     ~STG_LOGGER_LOCKER() { pthread_mutex_unlock(mutex); }
 
 private: