summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-12 01:00:02 +0000
committerSadie Powell <sadie@witchery.services>2025-03-12 01:00:02 +0000
commit718f2e922a6e1113d66fc6e96131213942d507b2 (patch)
treec97a1d4749f635f8241dbd246f204403c5be0c22 /include
parent2b2b6f75a19ee59b3356d58e68a36edb80249d76 (diff)
Const correct Serialize::Type::GetName().
Diffstat (limited to 'include')
-rw-r--r--include/serialize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serialize.h b/include/serialize.h
index a4895ac0c..dd721e693 100644
--- a/include/serialize.h
+++ b/include/serialize.h
@@ -169,7 +169,7 @@ public:
/** Gets the name for this type
* @return The name, eg "NickAlias"
*/
- const Anope::string &GetName() { return this->name; }
+ const Anope::string &GetName() const { return this->name; }
/** Unserialized an object.
* @param obj NULL if this object doesn't yet exist. If this isn't NULL, instead