From 2f512281029fbf4f7ef9832e05804831ad2d9ba2 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 30 Nov 2016 13:13:41 -0500 Subject: Fix some field shadowing warnings --- include/protocol.h | 4 ++-- include/serialize.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/protocol.h b/include/protocol.h index f7e7460f0..7475fed21 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -340,9 +340,9 @@ class IRCMessage return source; } - void SetSource(const MessageSource &source) + void SetSource(const MessageSource &_source) { - this->source = source; + this->source = _source; } const Anope::string &GetCommand() const diff --git a/include/serialize.h b/include/serialize.h index cec6d225d..0b420bff0 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -372,9 +372,9 @@ class Serialize::FieldBase : public Service * the object the field references gets deleted, this object * gets deleted too. */ - bool depends; + bool depends = false; - bool object = false; + bool is_object = false; FieldBase(Module *, const Anope::string &, const Anope::string &, bool); virtual ~FieldBase(); @@ -698,12 +698,12 @@ class Serialize::ObjectField : public CommonFieldBase public: ObjectField(TypeBase *t, const Anope::string &n, bool d = false) : CommonFieldBase(t, n, d) { - this->object = true; + this->is_object = true; } ObjectField(TypeBase *t, const Anope::string &n, T TypeImpl::*field, bool d = false) : CommonFieldBase(t, n, field, d) { - this->object = true; + this->is_object = true; } T GetField(TypeImpl *s) -- cgit