summaryrefslogtreecommitdiff
path: root/include/modules/cs_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/cs_mode.h')
-rw-r--r--include/modules/cs_mode.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/modules/cs_mode.h b/include/modules/cs_mode.h
index 9ef04da68..f3668c004 100644
--- a/include/modules/cs_mode.h
+++ b/include/modules/cs_mode.h
@@ -9,6 +9,8 @@
* Based on the original code of Services by Andy Church.
*/
+#pragma once
+
struct ModeLock
{
Anope::string ci;
@@ -18,16 +20,16 @@ struct ModeLock
Anope::string setter;
time_t created;
- virtual ~ModeLock() { }
- protected:
- ModeLock() { }
+ virtual ~ModeLock() = default;
+protected:
+ ModeLock() = default;
};
struct ModeLocks
{
typedef std::vector<ModeLock *> ModeList;
- virtual ~ModeLocks() { }
+ virtual ~ModeLocks() = default;
/** Check if a mode is mlocked
* @param mode The mode