]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/tables.h
Fight CLang warnings.
[stg.git] / projects / stargazer / plugins / other / smux / tables.h
index edfe4377326a9d47d7e765021b3cf8a0a2eb0a2e..17875cecfa49029e9d4f770f32c45c5bf6edf288 100644 (file)
@@ -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
+}