From 665e83d56aa6c17b68b9ef535218d405a2c8739d Mon Sep 17 00:00:00 2001 From: Joel Thomas Date: Tue, 26 May 2026 21:25:02 +0530 Subject: [PATCH] Implement review fixes --- .../Trenser.VehicleServiceSystem/files/README.md | 1 + .../Trenser.VehicleServiceSystem/views/MenuHelper.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/files/README.md diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/files/README.md b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/files/README.md new file mode 100644 index 0000000..6e6b93e --- /dev/null +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/files/README.md @@ -0,0 +1 @@ +Place files here. \ No newline at end of file diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h index 18f500c..186c730 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h @@ -162,16 +162,16 @@ Returns: */ inline util::Map filterActiveServiceBookings(util::Map currentBookings) { - util::Map activeServcieBookings; + util::Map activeServiceBookings; for (int iterator = 0; iterator < currentBookings.getSize(); iterator++) { const ServiceBooking* currentServiceBooking = currentBookings.getValueAt(iterator); if (currentServiceBooking && currentServiceBooking->getStatus() == util::ServiceJobStatus::PENDING) { - activeServcieBookings.insert(currentServiceBooking->getId(), currentServiceBooking); + activeServiceBookings.insert(currentServiceBooking->getId(), currentServiceBooking); } } - return activeServcieBookings; + return activeServiceBookings; } /* @@ -479,10 +479,10 @@ inline void displayInvoices(util::Map currentUserIn else { throw std::runtime_error("Null invoice encountered while displaying invoices."); - util::pressEnter(); } } } + util::pressEnter(); } /*