From 3cd0a11f3a8aba9dcb9ac0afa8a148cd985a7743 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <romain.bernard@uca.fr> Date: Tue, 17 Sep 2024 18:40:15 +0200 Subject: [PATCH] make const --- src/routes/vehicle/propagation/SAEVRouteChangelist.cpp | 2 +- src/routes/vehicle/propagation/SAEVRouteChangelist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp b/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp index 535941b..3bd9e14 100644 --- a/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp +++ b/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp @@ -102,6 +102,6 @@ void SAEVRouteChangelist::setVehicleId(size_t vehicleId) { _vehicleId = vehicleId; } -bool SAEVRouteChangelist::success() { +bool SAEVRouteChangelist::success() const { return _status == InsertionStatus::SUCCESS; } diff --git a/src/routes/vehicle/propagation/SAEVRouteChangelist.h b/src/routes/vehicle/propagation/SAEVRouteChangelist.h index 4541e85..fc7844b 100644 --- a/src/routes/vehicle/propagation/SAEVRouteChangelist.h +++ b/src/routes/vehicle/propagation/SAEVRouteChangelist.h @@ -74,7 +74,7 @@ public: [[nodiscard]] InsertionStatus getStatus() const; void setStatus(InsertionStatus status); - [[nodiscard]] bool success(); + [[nodiscard]] bool success() const; [[nodiscard]] InsertionStatus getCurrentStatus() const; void setCurrentStatus(InsertionStatus currentStatus); -- GitLab