diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
commit | c5636d2031b20e673441e095d90ba94942698e7c (patch) | |
tree | 30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/FileHanding.cpp | |
parent | 0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff) | |
download | PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.gz PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.xz PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.zip |
Some class enum implementation
Just for better code design: https://docs.microsoft.com/pt-br/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types
Diffstat (limited to 'Project/FileHanding.cpp')
-rw-r--r-- | Project/FileHanding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/FileHanding.cpp b/Project/FileHanding.cpp index b8e39ce..44acf7b 100644 --- a/Project/FileHanding.cpp +++ b/Project/FileHanding.cpp @@ -54,7 +54,7 @@ void FileHanding::SaveProject(wxFileName path) auto generalPropNode = XMLParser::AppendNode(doc, simulationPropNode, "General"); auto basePower = XMLParser::AppendNode(doc, generalPropNode, "BasePower"); XMLParser::SetNodeValue(doc, basePower, simulationData.basePower); - XMLParser::SetNodeAttribute(doc, basePower, "UnitID", simulationData.basePowerUnit); + XMLParser::SetNodeAttribute(doc, basePower, "UnitID", static_cast<int>(simulationData.basePowerUnit)); auto contCalc = XMLParser::AppendNode(doc, generalPropNode, "ContinuousCalculation"); auto contCalcFault = XMLParser::AppendNode(doc, contCalc, "Fault"); XMLParser::SetNodeValue(doc, contCalcFault, simulationData.faultAfterPowerFlow); |