diff --git a/module/Library/XML.cpp b/module/Library/XML.cpp index 3ec4e675..f266db1c 100644 --- a/module/Library/XML.cpp +++ b/module/Library/XML.cpp @@ -191,7 +191,7 @@ SQInteger XmlText::GetLong() const XmlText & XmlText::SetLong(SQInteger value) { m_Text = value; - return &this; + return *this; } // ------------------------------------------------------------------------------------------------ @@ -204,7 +204,7 @@ SQInteger XmlText::GetUlong() const XmlText & XmlText::SetUlong(SQInteger value) { m_Text = static_cast< uint64_t >(value); - return &this; + return *this; } // ------------------------------------------------------------------------------------------------ diff --git a/module/Library/XML.hpp b/module/Library/XML.hpp index ed0ca77f..ca7c96cd 100644 --- a/module/Library/XML.hpp +++ b/module/Library/XML.hpp @@ -1866,7 +1866,7 @@ public: XmlText & SetString(StackStrF & value) { m_Text = value.mPtr; - return &this; + return *this; } /* -------------------------------------------------------------------------------------------- @@ -1883,7 +1883,7 @@ public: XmlText & SetInt(int32_t value) { m_Text = value; - return &this; + return *this; } /* -------------------------------------------------------------------------------------------- @@ -1900,7 +1900,7 @@ public: XmlText & SetUint(uint32_t value) { m_Text = value; - return &this; + return *this; } /* -------------------------------------------------------------------------------------------- @@ -1917,7 +1917,7 @@ public: XmlText & SetFloat(SQFloat value) { m_Text = value; - return &this; + return *this; } /* -------------------------------------------------------------------------------------------- @@ -1934,7 +1934,7 @@ public: XmlText & SetDouble(SQFloat value) { m_Text = value; - return &this; + return *this; } /* -------------------------------------------------------------------------------------------- @@ -1971,7 +1971,7 @@ public: XmlText & SetBool(bool value) { m_Text = value; - return &this; + return *this; } /* --------------------------------------------------------------------------------------------