]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/types.h
Fight CLang warnings.
[stg.git] / projects / stargazer / plugins / other / smux / types.h
index 5498d2ebce3e6350b2b4f513425e824e66b2f01b..f6b145f7e001094ca0a4d67b572a7a4ea68c9fdf 100644 (file)
@@ -1,19 +1,22 @@
-#ifndef __TYPES_H__
-#define __TYPES_H__
+#pragma once
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
+#include "stg/OBJECT_IDENTIFIER.h"
+#pragma GCC diagnostic pop
 
 #include <string>
 #include <vector>
 #include <iostream>
 
-#include "stg/OBJECT_IDENTIFIER.h"
-
-class OID {
+class OID
+{
     public:
-        OID(const std::string & str);
+        explicit OID(const std::string & str);
         OID(const char * str, size_t length);
-        OID(const std::vector<unsigned> & arcs);
+        explicit OID(const std::vector<unsigned> & arcs);
         OID(const unsigned * arcs, size_t length);
-        OID(OBJECT_IDENTIFIER_t * oid);
+        explicit OID(OBJECT_IDENTIFIER_t * oid);
         OID(const OID & rvalue);
         ~OID();
 
@@ -53,5 +56,3 @@ bool PrefixLess(const OID & a, const OID & b)
 {
 return a.PrefixLess(b);
 }
-
-#endif