summaryrefslogtreecommitdiffstats
path: root/Project/ControlElementSolver.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
commitc5636d2031b20e673441e095d90ba94942698e7c (patch)
tree30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/ControlElementSolver.cpp
parent0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff)
downloadPSP.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/ControlElementSolver.cpp')
-rw-r--r--Project/ControlElementSolver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/ControlElementSolver.cpp b/Project/ControlElementSolver.cpp
index 037da84..31c18e9 100644
--- a/Project/ControlElementSolver.cpp
+++ b/Project/ControlElementSolver.cpp
@@ -344,7 +344,7 @@ ConnectionLine* ControlElementSolver::SolveNextElement(ConnectionLine* currentLi
Node* childNode = *itCN;
if(childNode == outNode) {
// Check if the line connect two elements, otherwise return NULL
- if(cLine->GetType() != ConnectionLine::ELEMENT_ELEMENT) return NULL;
+ if(cLine->GetType() != ConnectionLine::ConnectionLineType::ELEMENT_ELEMENT) return NULL;
// Set the connection line value and return it.
cLine->SetValue(element->GetOutput());