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

Minor changes.

This commit is contained in:
Sandu Liviu Catalin 2022-03-09 22:59:19 +02:00
parent 7e39fab21a
commit 8dc0ca18f5
2 changed files with 12 additions and 12 deletions

View File

@ -263,8 +263,8 @@ void Register_XML(HSQUIRRELVM vm)
.Prop(_SC("Next"), &XmlAttribute::NextAttribute) .Prop(_SC("Next"), &XmlAttribute::NextAttribute)
.Prop(_SC("Prev"), &XmlAttribute::PrevAttribute) .Prop(_SC("Prev"), &XmlAttribute::PrevAttribute)
// Member Methods // Member Methods
.Func(_SC("SetName"), &XmlAttribute::SetName) .FmtFunc(_SC("SetName"), &XmlAttribute::SetName)
.Func(_SC("SetValue"), &XmlAttribute::ApplyValue) .FmtFunc(_SC("SetValue"), &XmlAttribute::ApplyValue)
.Func(_SC("AsString"), &XmlAttribute::AsString) .Func(_SC("AsString"), &XmlAttribute::AsString)
.Func(_SC("AsInt"), &XmlAttribute::AsInt) .Func(_SC("AsInt"), &XmlAttribute::AsInt)
.Func(_SC("AsUint"), &XmlAttribute::AsUint) .Func(_SC("AsUint"), &XmlAttribute::AsUint)
@ -354,8 +354,8 @@ void Register_XML(HSQUIRRELVM vm)
.Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer1) .Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer1)
.Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer2) .Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer2)
.Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer3) .Overload(_SC("AppendBuffer"), &XmlNode::AppendBuffer3)
.Func(_SC("SetName"), &XmlNode::SetName) .FmtFunc(_SC("SetName"), &XmlNode::SetName)
.Func(_SC("SetValue"), &XmlNode::ApplyValue) .FmtFunc(_SC("SetValue"), &XmlNode::ApplyValue)
.Func(_SC("GetChild"), &XmlNode::Child) .Func(_SC("GetChild"), &XmlNode::Child)
.Func(_SC("GetAttr"), &XmlNode::GetAttribute) .Func(_SC("GetAttr"), &XmlNode::GetAttribute)
.Func(_SC("GetAttribute"), &XmlNode::GetAttribute) .Func(_SC("GetAttribute"), &XmlNode::GetAttribute)
@ -372,8 +372,8 @@ void Register_XML(HSQUIRRELVM vm)
.Func(_SC("PrependAttrCopy"), &XmlNode::PrependAttrCopy) .Func(_SC("PrependAttrCopy"), &XmlNode::PrependAttrCopy)
.Func(_SC("InsertAttrCopyAfter"), &XmlNode::InsertAttrCopyAfter) .Func(_SC("InsertAttrCopyAfter"), &XmlNode::InsertAttrCopyAfter)
.Func(_SC("InsertAttrCopyBefore"), &XmlNode::InsertAttrCopyBefore) .Func(_SC("InsertAttrCopyBefore"), &XmlNode::InsertAttrCopyBefore)
.Func(_SC("AppendChild"), &XmlNode::AppendChild) .FmtFunc(_SC("AppendChild"), &XmlNode::AppendChild)
.Func(_SC("PrependChild"), &XmlNode::PrependChild) .FmtFunc(_SC("PrependChild"), &XmlNode::PrependChild)
.Func(_SC("AppendChildNode"), &XmlNode::AppendChildNode) .Func(_SC("AppendChildNode"), &XmlNode::AppendChildNode)
.Func(_SC("PrependChildNode"), &XmlNode::PrependChildNode) .Func(_SC("PrependChildNode"), &XmlNode::PrependChildNode)
.Func(_SC("AppendChildType"), &XmlNode::AppendChildType) .Func(_SC("AppendChildType"), &XmlNode::AppendChildType)
@ -390,9 +390,9 @@ void Register_XML(HSQUIRRELVM vm)
.Func(_SC("PrependMove"), &XmlNode::PrependMove) .Func(_SC("PrependMove"), &XmlNode::PrependMove)
.Func(_SC("InsertMoveAfter"), &XmlNode::InsertMoveAfter) .Func(_SC("InsertMoveAfter"), &XmlNode::InsertMoveAfter)
.Func(_SC("InsertMoveBefore"), &XmlNode::InsertMoveBefore) .Func(_SC("InsertMoveBefore"), &XmlNode::InsertMoveBefore)
.Func(_SC("RemoveAttr"), &XmlNode::RemoveAttr) .FmtFunc(_SC("RemoveAttr"), &XmlNode::RemoveAttr)
.Func(_SC("RemoveAttrInst"), &XmlNode::RemoveAttrInst) .Func(_SC("RemoveAttrInst"), &XmlNode::RemoveAttrInst)
.Func(_SC("RemoveChild"), &XmlNode::RemoveChild) .FmtFunc(_SC("RemoveChild"), &XmlNode::RemoveChild)
.Func(_SC("RemoveChildInst"), &XmlNode::RemoveChildInst) .Func(_SC("RemoveChildInst"), &XmlNode::RemoveChildInst)
.Overload(_SC("FindChildByAttr"), &XmlNode::FindChildByAttr2) .Overload(_SC("FindChildByAttr"), &XmlNode::FindChildByAttr2)
.Overload(_SC("FindChildByAttr"), &XmlNode::FindChildByAttr3) .Overload(_SC("FindChildByAttr"), &XmlNode::FindChildByAttr3)

View File

@ -663,7 +663,7 @@ protected:
* Explicit constructor. * Explicit constructor.
*/ */
XmlNode(DocumentRef doc, const Type & node) XmlNode(DocumentRef doc, const Type & node)
: m_Doc(std::move(doc)), m_Node(node) : m_Node(node), m_Doc(std::move(doc))
{ {
/* ... */ /* ... */
} }
@ -671,8 +671,8 @@ protected:
private: private:
// --------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------
DocumentRef m_Doc{}; // The main xml document instance.
Type m_Node{}; // The managed document node. Type m_Node{}; // The managed document node.
DocumentRef m_Doc{}; // The main xml document instance.
public: public:
@ -781,7 +781,7 @@ public:
{ {
if (!m_Node.set_name(name.mPtr)) if (!m_Node.set_name(name.mPtr))
{ {
STHROWF("Unable to set XML node name `{s}`", name.ToStr()); STHROWF("Unable to set XML node name `{}`", name.ToStr());
} }
return *this; return *this;
} }
@ -1329,7 +1329,7 @@ public:
{ {
if (!m_Attr.set_name(name.mPtr)) if (!m_Attr.set_name(name.mPtr))
{ {
STHROWF("Unable to set XML attribute name `{s}`", name.ToStr()); STHROWF("Unable to set XML attribute name `{}`", name.ToStr());
} }
return *this; return *this;
} }