X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1347f3d1e04bedd1508589173f577673ee2c5554..cd503f9a809967fee39d94c878c2ffe266c5b224:/projects/stargazer/tariffs_impl.h

diff --git a/projects/stargazer/tariffs_impl.h b/projects/stargazer/tariffs_impl.h
index 37c76fc4..55cc49b3 100644
--- a/projects/stargazer/tariffs_impl.h
+++ b/projects/stargazer/tariffs_impl.h
@@ -25,16 +25,16 @@
 #ifndef TARIFFS_IMPL_H
 #define TARIFFS_IMPL_H
 
-#include <pthread.h>
+#include "stg/tariff.h"
+#include "stg/tariffs.h"
+#include "stg/tariff_conf.h"
+#include "tariff_impl.h"
 
 #include <string>
 #include <list>
 #include <set>
 
-#include "stg/tariff.h"
-#include "stg/tariffs.h"
-#include "stg/tariff_conf.h"
-#include "tariff_impl.h"
+#include <pthread.h>
 
 #define TARIFF_DAY     0
 #define TARIFF_NIGHT   1
@@ -47,7 +47,7 @@ class TARIFFS_IMPL : public TARIFFS {
 public:
     typedef std::list<TARIFF_IMPL> Tariffs;
 
-    TARIFFS_IMPL(STORE * store);
+    explicit TARIFFS_IMPL(STORE * store);
     virtual ~TARIFFS_IMPL();
     int ReadTariffs ();
     const TARIFF * FindByName(const std::string & name) const;
@@ -63,7 +63,7 @@ public:
     void AddNotifierDel(NOTIFIER_BASE<TARIFF_DATA> * notifier);
     void DelNotifierDel(NOTIFIER_BASE<TARIFF_DATA> * notifier);
 
-    void GetTariffsData(std::list<TARIFF_DATA> * tdl);
+    void GetTariffsData(std::list<TARIFF_DATA> * tdl) const;
 
     const std::string & GetStrError() const { return strError; }