]> git.lizzy.rs Git - minetest.git/blobdiff - src/ban.h
Add sound to press event of some formspecs elements (#10402)
[minetest.git] / src / ban.h
index 7c88406d48e79462f13380ffc9a22c610738b4c3..3e2ab7a877ec989882f5d5e0ec4099b530f45dbb 100644 (file)
--- a/src/ban.h
+++ b/src/ban.h
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef BAN_HEADER
-#define BAN_HEADER
+#pragma once
 
 #include "util/string.h"
 #include "threading/thread.h"
@@ -30,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 class BanManager
 {
 public:
-       BanManager(const std::string &bannfilepath);
+       BanManager(const std::string &banfilepath);
        ~BanManager();
        void load();
        void save();
@@ -44,9 +43,7 @@ class BanManager
 
 private:
        std::mutex m_mutex;
-       std::string m_banfilepath;
+       std::string m_banfilepath = "";
        StringMap m_ips;
-       bool m_modified;
+       bool m_modified = false;
 };
-
-#endif