summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-16 15:18:00 +0100
committerSadie Powell <sadie@witchery.services>2025-05-16 15:18:00 +0100
commitbe5a0e8108cb5d17b4e36f5858e1700ccb645c8b (patch)
tree759d3f6b08f73895df1d0017b70b11d223db1eb5 /src/regchannel.cpp
parent3da8244de5d013cc9c390c194c195f5c4a81a0da (diff)
Serialize using mutable objects not immutable ones.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 861ff2af1..991cf90f8 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -44,7 +44,7 @@ AutoKick::Type::Type()
{
}
-void AutoKick::Type::Serialize(const Serializable *obj, Serialize::Data &data) const
+void AutoKick::Type::Serialize(Serializable *obj, Serialize::Data &data) const
{
const auto *ak = static_cast<const AutoKick *>(obj);
data.Store("ci", ak->ci->name);
@@ -186,7 +186,7 @@ ChannelInfo::Type::Type()
{
}
-void ChannelInfo::Type::Serialize(const Serializable *obj, Serialize::Data &data) const
+void ChannelInfo::Type::Serialize(Serializable *obj, Serialize::Data &data) const
{
const auto *ci = static_cast<const ChannelInfo *>(obj);