From 80b24dc9c3b7a7adddecd4022eeef70310fe2012 Mon Sep 17 00:00:00 2001 From: Matthias Suess Date: Wed, 11 Oct 2023 13:24:05 +0200 Subject: [PATCH] Correction related to clang format Signed-off-by: Matthias Suess --- lib/ocpp/v16/charge_point_configuration.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ocpp/v16/charge_point_configuration.cpp b/lib/ocpp/v16/charge_point_configuration.cpp index 2aa00daa7..63d2545f3 100644 --- a/lib/ocpp/v16/charge_point_configuration.cpp +++ b/lib/ocpp/v16/charge_point_configuration.cpp @@ -1541,14 +1541,14 @@ bool ChargePointConfiguration::isConnectorPhaseRotationValid(std::string str) { str.erase(std::remove_if(str.begin(), str.end(), isspace), str.end()); boost::split(elements, str, boost::is_any_of(",")); - //Filter per element of type 0.NotApplicable, 1.NotApplicable, or 0.Unknown etc + // Filter per element of type 0.NotApplicable, 1.NotApplicable, or 0.Unknown etc for (int connector_id = 0; connector_id <= this->getNumberOfConnectors(); connector_id++) { - std::string myNotApplicable=std::to_string(connector_id)+".NotApplicable"; - std::string myNotDefined=std::to_string(connector_id)+".Unknown"; - elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end()); - elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end()); + std::string myNotApplicable=std::to_string(connector_id)+".NotApplicable"; + std::string myNotDefined=std::to_string(connector_id)+".Unknown"; + elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end()); + elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end()); }; - //if all elemens are hit, accept it, else check the remaining + // if all elemens are hit, accept it, else check the remaining if (elements.size() == 0 ){ return true;}; for (const std::string& e : elements) {