summaryrefslogtreecommitdiffstats
path: root/Project/Gain.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-08 20:07:47 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-08 20:07:47 -0200
commitc11a42ee83fcf535557d4f2cc259efae2da1b7ff (patch)
tree13fd8f4449f2cfeed8a6185e96a6889f9529285d /Project/Gain.cpp
parent95f61a7cad71c45c9e27af5c6f4bc5d64d5ecc45 (diff)
downloadPSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.gz
PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.xz
PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.zip
File handling and control initialization organized
Diffstat (limited to 'Project/Gain.cpp')
-rw-r--r--Project/Gain.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Gain.cpp b/Project/Gain.cpp
index fd82fba..2977f1f 100644
--- a/Project/Gain.cpp
+++ b/Project/Gain.cpp
@@ -200,7 +200,7 @@ bool Gain::UpdateText()
return true;
}
-void Gain::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode)
+rapidxml::xml_node<>* Gain::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode)
{
auto elementNode = XMLParser::AppendNode(doc, elementListNode, "Gain");
XMLParser::SetNodeAttribute(doc, elementNode, "ID", m_elementID);
@@ -211,6 +211,8 @@ void Gain::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elem
// Element properties
auto value = XMLParser::AppendNode(doc, elementNode, "Value");
XMLParser::SetNodeValue(doc, value, m_value);
+
+ return elementNode;
}
bool Gain::OpenElement(rapidxml::xml_node<>* elementNode)