From c5636d2031b20e673441e095d90ba94942698e7c Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 6 Jun 2020 11:37:00 -0300 Subject: 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 --- Project/ControlElementSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/ControlElementSolver.cpp') 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()); -- cgit