From 9f10d680a325d2f3328da1849c78a6506043440a Mon Sep 17 00:00:00 2001 From: EndrII Date: Sat, 24 Dec 2022 21:28:45 +0300 Subject: [PATCH] fix build warnings --- src/Core/DoctorPillCore/doctor.cpp | 4 ++-- src/Core/DoctorPillCore/doctor.h | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Core/DoctorPillCore/doctor.cpp b/src/Core/DoctorPillCore/doctor.cpp index 10bbe57..d22a812 100644 --- a/src/Core/DoctorPillCore/doctor.cpp +++ b/src/Core/DoctorPillCore/doctor.cpp @@ -17,7 +17,7 @@ Doctor::Doctor(const QList > &base) { qRegisterMetaType >>(); } -void Doctor::diagnostic(bool fix) const { +void Doctor::diagnostic(bool fix) { QList > failed; QList > detected; @@ -55,7 +55,7 @@ void Doctor::diagnostic(bool fix) const { } } -void Doctor::fix(const QList > &pills) const { +void Doctor::fix(const QList > &pills) { QList > failed; QList > fixedSuccessful; diff --git a/src/Core/DoctorPillCore/doctor.h b/src/Core/DoctorPillCore/doctor.h index 8b05230..ecd5356 100644 --- a/src/Core/DoctorPillCore/doctor.h +++ b/src/Core/DoctorPillCore/doctor.h @@ -40,7 +40,7 @@ public: * @see Doctor::sigFixesFinishedSuccessful * @see Doctor::sigDiagnosticFinished */ - void diagnostic(bool fix = false) const; + void diagnostic(bool fix = false); /** * @brief fix This method try run fixes by input pills. @@ -51,7 +51,7 @@ public: * @see Doctor::sigFixesFailed * @see Doctor::sigFixesFinishedSuccessful */ - void fix(const QList>& pills) const; + void fix(const QList>& pills); /** * @brief addPill This method add new pill object to doctor library @@ -71,25 +71,25 @@ signals: * @see Doctor::sigFixesFailed * @see Doctor::sigFixesFinishedSuccessful */ - void sigDiagnosticFinished(QList> issues) const; + void sigDiagnosticFinished(QList> issues); /** * @brief sigFixesFailed This signal emited when the doctor can't fix foundet issues. * @param issues This is list of the unfixable issues. */ - void sigFixesFailed(QList> issues) const; + void sigFixesFailed(QList> issues); /** * @brief sigFixesFinishedSuccessful This signal emited when the doctor fix foundet issues successfull. * @param issues This is list of the fixed issues. */ - void sigFixesFinishedSuccessful(QList> issues) const; + void sigFixesFinishedSuccessful(QList> issues); /** * @brief sigDiagnosticProgressChanged This signal emitted when progress of diagnstic changed. * @param progress This is ptogress of diagnostic process from 0 to 1 */ - void sigDiagnosticProgressChanged(float progress) const; + void sigDiagnosticProgressChanged(float progress); private: QList> _pillsData; };