From 718f2e922a6e1113d66fc6e96131213942d507b2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 12 Mar 2025 01:00:02 +0000 Subject: Const correct Serialize::Type::GetName(). --- include/serialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit