diff --git a/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp b/src/routes/vehicle/propagation/SAEVRouteChangelist.cpp index 535941b00f08845bf95b8d8489224d653a899d8d..3bd9e144bd2664444cebecdb6c7b487b0e06c790 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 4541e855ddbc10c672ce4003beac0ec3cca56cc1..fc7844b1019e9b689db1a36f216385393cf2aff7 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);