1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-06 00:47:11 +02:00

Reuse method.

This commit is contained in:
Sandu Liviu Catalin
2022-03-09 22:41:00 +02:00
parent da139c6a81
commit 7e39fab21a
2 changed files with 4 additions and 20 deletions

View File

@ -781,19 +781,11 @@ public:
{
if (!m_Node.set_name(name.mPtr))
{
STHROWF("Unable to set XML node name");
STHROWF("Unable to set XML node name `{s}`", name.ToStr());
}
return *this;
}
/* --------------------------------------------------------------------------------------------
* Modify the node name.
*/
bool ApplyName(StackStrF & name)
{
return m_Node.set_name(name.mPtr);
}
/* --------------------------------------------------------------------------------------------
* Retrieve node value.
*/
@ -1337,19 +1329,11 @@ public:
{
if (!m_Attr.set_name(name.mPtr))
{
STHROWF("Unable to set XML attribute name");
STHROWF("Unable to set XML attribute name `{s}`", name.ToStr());
}
return *this;
}
/* --------------------------------------------------------------------------------------------
* Modify the attribute name.
*/
bool ApplyName(StackStrF & name)
{
return m_Attr.set_name(name.mPtr);
}
/* --------------------------------------------------------------------------------------------
* Retrieve attribute value.
*/