X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..32d9767958eece65c3d6feb02419a3f003dc2f0a:/projects/stargazer/plugins/other/smux/tables.h

diff --git a/projects/stargazer/plugins/other/smux/tables.h b/projects/stargazer/plugins/other/smux/tables.h
index edfe4377..17875cec 100644
--- a/projects/stargazer/plugins/other/smux/tables.h
+++ b/projects/stargazer/plugins/other/smux/tables.h
@@ -1,16 +1,14 @@
-#ifndef __TABLES_H__
-#define __TABLES_H__
+#pragma once
+
+#include "sensors.h"
 
 #include <string>
 #include <map>
 
-#include "sensors.h"
-
 namespace STG
 {
-struct Tariffs;
-struct Users;
-}
+class Tariffs;
+class Users;
 
 class TableSensor {
     public:
@@ -33,9 +31,8 @@ class TariffUsersTable : public TableSensor {
               tariffs(t),
               users(u)
         {}
-        virtual ~TariffUsersTable() {}
 
-        void UpdateSensors(Sensors & sensors) const;
+        void UpdateSensors(Sensors & sensors) const override;
 
     private:
         STG::Tariffs & tariffs;
@@ -43,5 +40,4 @@ class TariffUsersTable : public TableSensor {
 };
 
 typedef std::map<std::string, TableSensor *> Tables;
-
-#endif
+}