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:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user