1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Fix return value.

This commit is contained in:
Sandu Liviu Catalin 2022-03-09 22:33:35 +02:00
parent e6cbdfaf30
commit 27521f209d
2 changed files with 8 additions and 8 deletions

View File

@ -191,7 +191,7 @@ SQInteger XmlText::GetLong() const
XmlText & XmlText::SetLong(SQInteger value) XmlText & XmlText::SetLong(SQInteger value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
@ -204,7 +204,7 @@ SQInteger XmlText::GetUlong() const
XmlText & XmlText::SetUlong(SQInteger value) XmlText & XmlText::SetUlong(SQInteger value)
{ {
m_Text = static_cast< uint64_t >(value); m_Text = static_cast< uint64_t >(value);
return &this; return *this;
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------

View File

@ -1866,7 +1866,7 @@ public:
XmlText & SetString(StackStrF & value) XmlText & SetString(StackStrF & value)
{ {
m_Text = value.mPtr; m_Text = value.mPtr;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
@ -1883,7 +1883,7 @@ public:
XmlText & SetInt(int32_t value) XmlText & SetInt(int32_t value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
@ -1900,7 +1900,7 @@ public:
XmlText & SetUint(uint32_t value) XmlText & SetUint(uint32_t value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
@ -1917,7 +1917,7 @@ public:
XmlText & SetFloat(SQFloat value) XmlText & SetFloat(SQFloat value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
@ -1934,7 +1934,7 @@ public:
XmlText & SetDouble(SQFloat value) XmlText & SetDouble(SQFloat value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
@ -1971,7 +1971,7 @@ public:
XmlText & SetBool(bool value) XmlText & SetBool(bool value)
{ {
m_Text = value; m_Text = value;
return &this; return *this;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------