Index: cppcheck.err =================================================================== diff -u -rfe9459548d7b0f6c1d8cb77c0e23d7a385b48fa2 -rad35b27c3ec3ea357b6173df5ab8793c3378af6e --- cppcheck.err (.../cppcheck.err) (revision fe9459548d7b0f6c1d8cb77c0e23d7a385b48fa2) +++ cppcheck.err (.../cppcheck.err) (revision ad35b27c3ec3ea357b6173df5ab8793c3378af6e) @@ -1,53 +1,35 @@ -02/28/2024 17:22 +01/23/2025 15:31 Dara Navaei sources/canbus/MessageAcknowModel.h:58:9: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning '_sequence' a value by passing the value to the constructor in the initialization list. [useInitializationList] _sequence = vSequence ; ^ sources/canbus/MessageAcknowModel.h:59:9: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning '_frameList' a value by passing the value to the constructor in the initialization list. [useInitializationList] _frameList = vFrameList ; ^ -sources/storage/FileHandler.h:108:14: style: Condition '!createFolder' is always false [knownConditionTrueFalse] +sources/storage/FileHandler.h:109:14: style: Condition '!createFolder' is always false [knownConditionTrueFalse] if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ -sources/storage/FileHandler.h:100:35: note: Assignment 'createFolder=true', assigned value is 1 +sources/storage/FileHandler.h:101:35: note: Assignment 'createFolder=true', assigned value is 1 bool createFolder = true; ^ -sources/storage/FileHandler.h:108:14: note: Condition '!createFolder' is always false +sources/storage/FileHandler.h:109:14: note: Condition '!createFolder' is always false if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ -sources/storage/FileHandler.h:97:17: style: Local variable 'totalSize' shadows outer function [shadowFunction] +sources/storage/FileHandler.h:98:17: style: Local variable 'totalSize' shadows outer function [shadowFunction] qint64 totalSize = 0; ^ -sources/storage/FileHandler.h:78:21: note: Shadowed declaration +sources/storage/FileHandler.h:76:21: note: Shadowed declaration static quint64 totalSize(const QFileInfoList &vFileInfoList); ^ -sources/storage/FileHandler.h:97:17: note: Shadow variable +sources/storage/FileHandler.h:98:17: note: Shadow variable qint64 totalSize = 0; ^ -sources/device/DeviceModels.h:50:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] - mString += QString(",%1").arg(param.toString()); - ^ -sources/storage/FileHandler.h:92:33: style: Variable 'err' is assigned a value that is never used. [unreadVariable] +sources/storage/FileHandler.h:93:33: style: Variable 'err' is assigned a value that is never used. [unreadVariable] FileCopyError_Enums err = eOK; ^ -sources/ApplicationPost.cpp:164:9: style: Condition '!ok' is always false [knownConditionTrueFalse] - if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_HD_UI_POST_FAILURE_DISPLAY); - ^ -sources/ApplicationPost.cpp:162:15: note: Assignment 'ok=true', assigned value is 1 - bool ok = true; - ^ -sources/ApplicationPost.cpp:164:9: note: Condition '!ok' is always false - if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_HD_UI_POST_FAILURE_DISPLAY); - ^ -sources/ApplicationPost.cpp:302:9: style: Condition '!ok' is always false [knownConditionTrueFalse] - if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_HD_UI_POST_FAILURE_SOUND); - ^ -sources/ApplicationPost.cpp:300:15: note: Assignment 'ok=true', assigned value is 1 - bool ok = true; - ^ -sources/ApplicationPost.cpp:302:9: note: Condition '!ok' is always false - if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_HD_UI_POST_FAILURE_SOUND); - ^ +main.cpp:500:28: style: Variable 'scriptName' is assigned a value that is never used. [unreadVariable] + QString scriptName = Storage::Device_Lockdown; + ^ sources/MainTimer.cpp:78:16: style: The scope of the variable 'oH' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: void f(int x) { @@ -93,336 +75,72 @@ When you see this message it is always safe to reduce the variable scope 1 level. [variableScope] static int oH,oM,oS; int cH,cM,cS; ^ -sources/cloudsync/CloudSyncController.cpp:493:13: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] - buf += item.toString(); - ^ -sources/cloudsync/CloudSyncController.cpp:266:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:301:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:597:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:652:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:661:51: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - if ( isDuplicate(messageID, data) ) { error = eError_Duplicate; args = { messageID }; ok = false; return ok; } // TODO: goto lErr; } don't log it just ignore and return false. - ^ -sources/cloudsync/CloudSyncController.cpp:661:76: style: Variable 'args' is assigned a value that is never used. [unreadVariable] - if ( isDuplicate(messageID, data) ) { error = eError_Duplicate; args = { messageID }; ok = false; return ok; } // TODO: goto lErr; } don't log it just ignore and return false. - ^ -sources/cloudsync/CloudSyncController.cpp:683:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:747:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/cloudsync/CloudSyncController.cpp:828:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] - Errors_Enum error = eError_Unknown; - ^ -sources/device/DeviceController.cpp:868:41: style: Variable 'err' is assigned a value that is never used. [unreadVariable] - DeviceError::Scripts_Error_Enum err = DeviceError::eDevice_OK; - ^ -sources/device/DeviceView.h:73:32: style: The condition 'vData.mAccepted || !vData.mAccepted && vData.mReason!=0' is equivalent to 'vData.mAccepted || vData.mReason!=0'. [redundantCondition] - return vData.mAccepted || (!vData.mAccepted && vData.mReason != 0 ); - ^ -sources/model/MAbstractDynamic.h:80:5: warning: Member variable 'MAbstractDynamic::_data' is not initialized in the constructor. [uninitMemberVar] - MAbstractDynamic () { } - ^ -sources/model/confirm/MDuetConfirmHDi.h:78:5: warning: Member variable 'MDuetConfirmHDi::_data' is not initialized in the constructor. [uninitMemberVar] - MDuetConfirmHDi () { } - ^ -sources/model/dg/adjustment/settings/MAdjustDGCleaningUsageResponse.h:99:5: warning: Member variable 'MAdjustDGCleaningUsageResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDGCleaningUsageResponse () { } - ^ -sources/model/dg/adjustment/settings/MAdjustDGDateTimeResponse.h:75:5: warning: Member variable 'MAdjustDGDateTimeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDGDateTimeResponse () { } - ^ -sources/model/dg/adjustment/settings/MAdjustDGServiceDatesResponse.h:74:5: warning: Member variable 'MAdjustServiceDatesDGResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustServiceDatesDGResponse () { } - ^ -sources/model/dg/adjustment/settings/MAdjustDGVersionsResponse.h:97:5: warning: Member variable 'MAdjustVersionsDGResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustVersionsDGResponse () { } - ^ -sources/model/dg/adjustment/settings/MDuetRoWaterDG.h:120:5: warning: Member variable 'MDuetRoWaterModeDGr::_data' is not initialized in the constructor. [uninitMemberVar] - MDuetRoWaterModeDGr () { } - ^ -sources/model/dg/data/MDGAccelerometerData.h:103:5: warning: Member variable 'MDGAccelerometer::_data' is not initialized in the constructor. [uninitMemberVar] - MDGAccelerometer () { } - ^ -sources/model/dg/data/MDGConductivityData.h:108:5: warning: Member variable 'MDGConductivityData::_data' is not initialized in the constructor. [uninitMemberVar] - MDGConductivityData () { } - ^ -sources/model/dg/data/MDGDrainPumpData.h:91:5: warning: Member variable 'MDGDrainPump::_data' is not initialized in the constructor. [uninitMemberVar] - MDGDrainPump () { } - ^ -sources/model/dg/data/MDGHeatersData.h:102:5: warning: Member variable 'MDGHeaters::_data' is not initialized in the constructor. [uninitMemberVar] - MDGHeaters () {} - ^ -sources/model/dg/data/MDGLoadCellReadingsData.h:81:5: warning: Member variable 'MDGLoadCellReadings::_data' is not initialized in the constructor. [uninitMemberVar] - MDGLoadCellReadings () {} - ^ -sources/model/dg/data/MDGOperationModeData.h:75:5: warning: Member variable 'MDGOperationMode::_data' is not initialized in the constructor. [uninitMemberVar] - MDGOperationMode () {} - ^ -sources/model/dg/data/MDGPressuresData.h:84:5: warning: Member variable 'MDGPressures::_data' is not initialized in the constructor. [uninitMemberVar] - MDGPressures () {} - ^ -sources/model/dg/data/MDGROPumpData.h:87:5: warning: Member variable 'MDGROPump::_data' is not initialized in the constructor. [uninitMemberVar] - MDGROPump () { } - ^ -sources/model/dg/data/MDGReservoirData.h:104:5: warning: Member variable 'MDGReservoir::_data' is not initialized in the constructor. [uninitMemberVar] - MDGReservoir () {} - ^ -sources/model/dg/data/MDGTemperaturesData.h:142:5: warning: Member variable 'MDGTemperatures::_data' is not initialized in the constructor. [uninitMemberVar] - MDGTemperatures() { } - ^ -sources/model/dg/data/MDGValvesStatesData.h:135:5: warning: Member variable 'MDGValvesStates::_data' is not initialized in the constructor. [uninitMemberVar] - MDGValvesStates () { } - ^ -sources/model/dg/data/post/MDGPostFinalResultData.h:74:5: warning: Member variable 'MDGPostFinalResult::_data' is not initialized in the constructor. [uninitMemberVar] - MDGPostFinalResult() {} - ^ -sources/model/dg/data/post/MDGPostSingleResultData.h:77:5: warning: Member variable 'MDGPostSingleResult::_data' is not initialized in the constructor. [uninitMemberVar] - MDGPostSingleResult() {} - ^ -sources/model/dg/data/pretreatment/MDGFilterFlushData.h:75:5: warning: Member variable 'MDGFilterFlush::_data' is not initialized in the constructor. [uninitMemberVar] - MDGFilterFlush() {} - ^ -sources/model/hd/adjustment/MAdjustPowerOff.h:65:5: warning: Member variable 'MPowerOff::_data' is not initialized in the constructor. [uninitMemberVar] - MPowerOff () { } - ^ -sources/model/hd/adjustment/disinfect/MDisinfectAdjustModeResponse.h:76:5: warning: Member variable 'MAdjustDisinfectModeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDisinfectModeResponse () { } - ^ -sources/model/hd/adjustment/disinfect/MDisinfectAdjustStartResponse.h:76:5: warning: Member variable 'MAdjustDisinfectStartResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDisinfectStartResponse () { } - ^ -sources/model/hd/adjustment/posttreatment/MPostTreatmentAdjustDisposablesRemovalConfirmResponse.h:77:5: warning: Member variable 'MAdjustDisposablesRemovalConfirmResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDisposablesRemovalConfirmResponse () { } - ^ -sources/model/hd/adjustment/posttreatment/MPostTreatmentAdjustPatientDisconnectionConfirmResponse.h:77:5: warning: Member variable 'MAdjustPatientDisconnectionConfirmResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustPatientDisconnectionConfirmResponse () { } - ^ -sources/model/hd/adjustment/posttreatment/MPostTreatmentAdjustTreatmentLogResponse.h:180:5: warning: Member variable 'MAdjustTreatmentLogResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustTreatmentLogResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustDisposablesConfirmResponse.h:77:5: warning: Member variable 'MAdjustDisposablesConfirmResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDisposablesConfirmResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustDisposablesPrimeResponse.h:77:5: warning: Member variable 'MAdjustDisposablesPrimeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDisposablesPrimeResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustInitTreatmentResponse.h:75:5: warning: Member variable 'MAdjustInitTreatmentResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustInitTreatmentResponse () {} - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustParametersValidationResponse.h:121:5: warning: Member variable 'MAdjustParametersValidationResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustParametersValidationResponse () {} - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustPatientConnectionBeginResponse.h:77:5: warning: Member variable 'MAdjustPatientConnectionBeginResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustPatientConnectionBeginResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustPatientConnectionConfirmResponse.h:77:5: warning: Member variable 'MAdjustPatientConnectionConfirmResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustPatientConnectionConfirmResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustStartTreatmentResponse.h:75:5: warning: Member variable 'MAdjustStartTreatmentResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustStartTreatmentResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustUltrafiltrationInitResponse.h:79:5: warning: Member variable 'MAdjustUltrafiltrationInitResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustUltrafiltrationInitResponse () { } - ^ -sources/model/hd/adjustment/pretreatment/MPreTreatmentAdjustWaterSampleResponse.h:77:5: warning: Member variable 'MAdjustWaterSampleResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustWaterSampleResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDAlarmVolumeResponse.h:75:5: warning: Member variable 'MAdjustHDAlarmVolumeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustHDAlarmVolumeResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDDateTimeResponse.h:75:5: warning: Member variable 'MAdjustHDDateTimeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustHDDateTimeResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDInstitutionalRecordResponse.h:108:5: warning: Member variable 'MAdjustInstitutionalRecordResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustInstitutionalRecordResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDServiceDatesResponse.h:74:5: warning: Member variable 'MAdjustServiceDatesHDResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustServiceDatesHDResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDServiceModeResponse.h:74:5: warning: Member variable 'MAdjustServiceModeResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustServiceModeResponse () { } - ^ -sources/model/hd/adjustment/settings/MAdjustHDVersionsResponse.h:97:5: warning: Member variable 'MAdjustVersionsHDResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustVersionsHDResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustBloodDialysateResponse.h:81:5: warning: Member variable 'MAdjustBloodDialysateResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustBloodDialysateResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustDurationResponse.h:82:5: warning: Member variable 'MAdjustDurationResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustDurationResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustEndResponse.h:77:5: warning: Member variable 'MAdjustTreatmentEndResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustTreatmentEndResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustHeparinResponse.h:77:5: warning: Member variable 'MAdjustHeparinResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustHeparinResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustPressuresLimitsResponse.h:86:5: warning: Member variable 'MAdjustPressuresLimitsResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustPressuresLimitsResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustRecirculateResponse.h:77:5: warning: Member variable 'MAdjustRecirculateResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustRecirculateResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustRinsebackResponse.h:77:5: warning: Member variable 'MAdjustRinsebackResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustRinsebackResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustSalineResponse.h:80:5: warning: Member variable 'MAdjustSalineResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustSalineResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationConfirmResponse.h:82:5: warning: Member variable 'MAdjustUltrafiltrationConfirmResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustUltrafiltrationConfirmResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationEditResponse.h:85:5: warning: Member variable 'MAdjustUltrafiltrationEditResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustUltrafiltrationEditResponse () { } - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationEditResponse.h:67:14: warning: The class 'MAdjustUltrafiltrationEditResponse' defines member variable with name 'stringPrefix' also defined in its parent class 'MAdjustUltrafiltrationConfirmResponse'. [duplInheritedMember] - QString stringPrefix = "AdjustUFEdit"; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationConfirmResponse.h:61:14: note: Parent variable 'MAdjustUltrafiltrationConfirmResponse::stringPrefix' - QString stringPrefix = "AdjustUFConfirm"; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationEditResponse.h:67:14: note: Derived variable 'MAdjustUltrafiltrationEditResponse::stringPrefix' - QString stringPrefix = "AdjustUFEdit"; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationEditResponse.h:82:7: warning: The class 'MAdjustUltrafiltrationEditResponse' defines member variable with name '_data' also defined in its parent class 'MAdjustUltrafiltrationConfirmResponse'. [duplInheritedMember] - } _data; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationConfirmResponse.h:79:7: note: Parent variable 'MAdjustUltrafiltrationConfirmResponse::_data' - } _data; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationEditResponse.h:82:7: note: Derived variable 'MAdjustUltrafiltrationEditResponse::_data' - } _data; - ^ -sources/model/hd/adjustment/treatment/MTreatmentAdjustUltrafiltrationStateResponse.h:78:5: warning: Member variable 'MAdjustUltrafiltrationStateResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAdjustUltrafiltrationStateResponse() { } - ^ -sources/model/hd/alarm/MAlarmActiveList.h:133:5: warning: Member variable 'MAlarmActiveListResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MAlarmActiveListResponse () { } - ^ -sources/model/hd/alarm/MAlarmCleared.h:72:5: warning: Member variable 'MAlarmCleared::_data' is not initialized in the constructor. [uninitMemberVar] - MAlarmCleared () { } - ^ -sources/model/hd/alarm/MAlarmClearedCondition.h:73:5: warning: Member variable 'MAlarmClearedCondition::_data' is not initialized in the constructor. [uninitMemberVar] - MAlarmClearedCondition () { } - ^ -sources/model/hd/alarm/MAlarmStatusData.h:86:5: warning: Member variable 'MAlarmStatus::_data' is not initialized in the constructor. [uninitMemberVar] - MAlarmStatus() { } - ^ -sources/model/hd/alarm/MAlarmTriggered.h:99:5: warning: Member variable 'MAlarmTriggered::_xata' is not initialized in the constructor. [uninitMemberVar] - MAlarmTriggered () { } - ^ -sources/model/hd/alarm/MAlarmTriggered.h:65:18: style: The function 'parameters' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] - QVariantList parameters() const; +sources/StateController.cpp:10:18: warning: Member variable 'StateController::_isBroadcastListReady' is not initialized in the constructor. [uninitMemberVarPrivate] +StateController::StateController(QObject *parent) : QObject(parent) {} ^ -sources/model/MAbstract.h:139:26: note: Virtual function in base class - virtual QVariantList parameters () const = 0; - ^ -sources/model/hd/alarm/MAlarmTriggered.h:65:18: note: Function in derived class - QVariantList parameters() const; +sources/StateController.cpp:10:18: warning: Member variable 'StateController::_isSendListReady' is not initialized in the constructor. [uninitMemberVarPrivate] +StateController::StateController(QObject *parent) : QObject(parent) {} ^ -sources/model/hd/data/MHDAccelerometerData.h:103:5: warning: Member variable 'MHDAccelerometer::_data' is not initialized in the constructor. [uninitMemberVar] - MHDAccelerometer () { } - ^ -sources/model/hd/data/MHDAirBubbleData.h:77:5: warning: Member variable 'MHDAirBubbleData::_data' is not initialized in the constructor. [uninitMemberVar] - MHDAirBubbleData () { } - ^ -sources/model/hd/data/MHDAirTrapData.h:83:5: warning: Member variable 'MHDAirTrapData::_data' is not initialized in the constructor. [uninitMemberVar] - MHDAirTrapData () { } - ^ -sources/model/hd/data/MHDBloodLeakData.h:77:5: warning: Member variable 'MHDBloodLeakData::_data' is not initialized in the constructor. [uninitMemberVar] - MHDBloodLeakData () { } - ^ -sources/model/hd/data/MHDOperationModeData.h:75:5: warning: Member variable 'MHDOperationMode::_data' is not initialized in the constructor. [uninitMemberVar] - MHDOperationMode () {} - ^ -sources/model/hd/data/MHDSyringePumpData.h:106:5: warning: Member variable 'MHDSyringePump::_data' is not initialized in the constructor. [uninitMemberVar] - MHDSyringePump () { } - ^ -sources/model/hd/data/MHDUsageInfoResponse.h:84:5: warning: Member variable 'MHDUsageInfoResponse::_data' is not initialized in the constructor. [uninitMemberVar] - MHDUsageInfoResponse () {} - ^ -sources/model/hd/data/MTreatmentRangesData.h:87:5: warning: Member variable 'MTreatmentRanges::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentRanges () { } - ^ -sources/model/hd/data/post/MHDPostFinalResultData.h:74:5: warning: Member variable 'MHDPostFinalResult::_data' is not initialized in the constructor. [uninitMemberVar] - MHDPostFinalResult() {} - ^ -sources/model/hd/data/post/MHDPostSingleResultData.h:77:5: warning: Member variable 'MHDPostSingleResult::_data' is not initialized in the constructor. [uninitMemberVar] - MHDPostSingleResult() {} - ^ -sources/model/hd/data/post/MHDRTCEpochData.h:74:5: warning: Member variable 'MHDRTCEpochData::_data' is not initialized in the constructor. [uninitMemberVar] - MHDRTCEpochData () { } - ^ -sources/model/hd/data/posttreatment/MPostTreatmentStatesData.h:77:5: warning: Member variable 'MPostTreatmentStates::_data' is not initialized in the constructor. [uninitMemberVar] - MPostTreatmentStates() { } - ^ -sources/model/hd/data/pretreatment/MPreTreatmentDisposablesPrimeData.h:72:5: warning: Member variable 'MPreTreatmentDisposablesPrime::_data' is not initialized in the constructor. [uninitMemberVar] - MPreTreatmentDisposablesPrime() { } - ^ -sources/model/hd/data/pretreatment/MPreTreatmentSelfTestDryData.h:75:5: warning: Member variable 'MPreTreatmentSelfTestDry::_data' is not initialized in the constructor. [uninitMemberVar] - MPreTreatmentSelfTestDry() { } - ^ -sources/model/hd/data/pretreatment/MPreTreatmentSelfTestNoCartridgeData.h:75:5: warning: Member variable 'MPreTreatmentSelfTestNoCartridge::_data' is not initialized in the constructor. [uninitMemberVar] - MPreTreatmentSelfTestNoCartridge () { } - ^ -sources/model/hd/data/pretreatment/MPreTreatmentStatesData.h:111:5: warning: Member variable 'MPreTreatmentStates::_data' is not initialized in the constructor. [uninitMemberVar] - MPreTreatmentStates() { } - ^ -sources/model/hd/data/treatment/MTreatmentBloodFlowData.h:93:5: warning: Member variable 'MBloodFlow::_data' is not initialized in the constructor. [uninitMemberVar] - MBloodFlow() { } - ^ -sources/model/hd/data/treatment/MTreatmentBloodPrimeData.h:76:5: warning: Member variable 'MTreatmentBloodPrime::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentBloodPrime () { } - ^ -sources/model/hd/data/treatment/MTreatmentDialysateFlowData.h:95:5: warning: Member variable 'MDialysateFlow::_data' is not initialized in the constructor. [uninitMemberVar] - MDialysateFlow() { } - ^ -sources/model/hd/data/treatment/MTreatmentHeparinData.h:78:5: warning: Member variable 'MTreatmentHeparin::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentHeparin () { } - ^ -sources/model/hd/data/treatment/MTreatmentOutletFlowData.h:108:5: warning: Member variable 'MOutletFlow::_data' is not initialized in the constructor. [uninitMemberVar] - MOutletFlow () { } - ^ -sources/model/hd/data/treatment/MTreatmentPressureOcclusionData.h:93:5: warning: Member variable 'MPressureOcclusion::_data' is not initialized in the constructor. [uninitMemberVar] - MPressureOcclusion () { } - ^ -sources/model/hd/data/treatment/MTreatmentRecirculateData.h:78:5: warning: Member variable 'MTreatmentRecirculate::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentRecirculate () { } - ^ -sources/model/hd/data/treatment/MTreatmentRinsebackData.h:90:5: warning: Member variable 'MTreatmentRinseback::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentRinseback () { } - ^ -sources/model/hd/data/treatment/MTreatmentSalineData.h:81:5: warning: Member variable 'MTreatmentSaline::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentSaline () { } - ^ -sources/model/hd/data/treatment/MTreatmentStatesData.h:110:5: warning: Member variable 'MTreatmentStates::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentStates() { } - ^ -sources/model/hd/data/treatment/MTreatmentStopData.h:76:5: warning: Member variable 'MTreatmentStop::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentStop () { } - ^ -sources/model/hd/data/treatment/MTreatmentTimeData.h:79:5: warning: Member variable 'MTreatmentTime::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentTime () { } - ^ -sources/model/hd/data/treatmentlog/MTreatmentLogAlarmData.h:81:5: warning: Member variable 'MTreatmentLogAlarmData::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentLogAlarmData() { } - ^ -sources/model/hd/data/treatmentlog/MTreatmentLogAvrgeData.h:90:5: warning: Member variable 'MTreatmentLogAvrgeData::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentLogAvrgeData() { } - ^ -sources/model/hd/data/treatmentlog/MTreatmentLogEventData.h:81:5: warning: Member variable 'MTreatmentLogEventData::_data' is not initialized in the constructor. [uninitMemberVar] - MTreatmentLogEventData() { } - ^ +sources/StateController.cpp:10:18: warning: Member variable 'StateController::_treatmentVars' is not initialized in the constructor. [uninitMemberVarPrivate] +StateController::StateController(QObject *parent) : QObject(parent) {} + ^ +sources/StateController.cpp:10:18: warning: Member variable 'StateController::_treatmentParams' is not initialized in the constructor. [uninitMemberVarPrivate] +StateController::StateController(QObject *parent) : QObject(parent) {} + ^ +sources/StateController.cpp:10:18: warning: Member variable 'StateController::_hasUserConfirmedToProceed' is not initialized in the constructor. [uninitMemberVarPrivate] +StateController::StateController(QObject *parent) : QObject(parent) {} + ^ +sources/canbus/MessageDispatcher.cpp:254:9: style: Condition 'mNeedsAcknow' is always false [knownConditionTrueFalse] + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:253:25: note: Assignment 'mNeedsAcknow=false', assigned value is 0 + bool mNeedsAcknow = false; //needsAcknow(vCanId); + ^ +sources/canbus/MessageDispatcher.cpp:254:9: note: Condition 'mNeedsAcknow' is always false + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:266:9: style: Condition 'mNeedsAcknow' is always false [knownConditionTrueFalse] + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:253:25: note: Assignment 'mNeedsAcknow=false', assigned value is 0 + bool mNeedsAcknow = false; //needsAcknow(vCanId); + ^ +sources/canbus/MessageDispatcher.cpp:266:9: note: Condition 'mNeedsAcknow' is always false + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:308:9: style: Condition 'mNeedsAcknow' is always false [knownConditionTrueFalse] + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:307:25: note: Assignment 'mNeedsAcknow=false', assigned value is 0 + bool mNeedsAcknow = false; //needsAcknow(vCanId); + ^ +sources/canbus/MessageDispatcher.cpp:308:9: note: Condition 'mNeedsAcknow' is always false + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:326:9: style: Condition 'mNeedsAcknow' is always false [knownConditionTrueFalse] + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:307:25: note: Assignment 'mNeedsAcknow=false', assigned value is 0 + bool mNeedsAcknow = false; //needsAcknow(vCanId); + ^ +sources/canbus/MessageDispatcher.cpp:326:9: note: Condition 'mNeedsAcknow' is always false + if (mNeedsAcknow) { + ^ +sources/canbus/MessageDispatcher.cpp:395:19: style: The scope of the variable 'mActionId' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level. [variableScope] + int mActionId = 0; + ^ sources/model/settings/MSettings.cpp:45:15: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] mKeys += keyValue.key(); ^ @@ -432,28 +150,25 @@ sources/model/settings/MSettings.cpp:91:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] if ( vKey == keyValue.key() ) return keyValue.val(); ^ -sources/storage/Logger.cpp:43:5: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning '_logFileNamePrefix' a value by passing the value to the constructor in the initialization list. [useInitializationList] - _logFileNamePrefix = QFileInfo(qApp->applicationFilePath()).baseName(); - ^ -sources/storage/Logger.cpp:236:9: style: Condition 'vUseTempPath' is always false [knownConditionTrueFalse] +sources/storage/Logger.cpp:222:9: style: Condition 'vUseTempPath' is always false [knownConditionTrueFalse] if (vUseTempPath) { ^ -sources/storage/Logger.cpp:233:20: note: Assignment 'vUseTempPath=false', assigned value is 0 +sources/storage/Logger.cpp:219:20: note: Assignment 'vUseTempPath=false', assigned value is 0 vUseTempPath = false; ^ -sources/storage/Logger.cpp:236:9: note: Condition 'vUseTempPath' is always false +sources/storage/Logger.cpp:222:9: note: Condition 'vUseTempPath' is always false if (vUseTempPath) { ^ -sources/storage/Logger.cpp:256:10: style: Condition 'ok' is always true [knownConditionTrueFalse] +sources/storage/Logger.cpp:242:10: style: Condition 'ok' is always true [knownConditionTrueFalse] if ( ok && ! setLogPath(LogType::eLogAppED) ) ok = false; ^ -sources/storage/Logger.cpp:255:15: note: Assignment 'ok=true', assigned value is 1 +sources/storage/Logger.cpp:241:15: note: Assignment 'ok=true', assigned value is 1 bool ok = true; ^ -sources/storage/Logger.cpp:256:10: note: Condition 'ok' is always true +sources/storage/Logger.cpp:242:10: note: Condition 'ok' is always true if ( ok && ! setLogPath(LogType::eLogAppED) ) ok = false; ^ -sources/storage/Logger.cpp:194:17: style: The scope of the variable 'notified' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +sources/storage/Logger.cpp:180:17: style: The scope of the variable 'notified' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: void f(int x) { int i = 0; @@ -468,15 +183,15 @@ When you see this message it is always safe to reduce the variable scope 1 level. [variableScope] static bool notified = false; ^ -sources/storage/Settings.cpp:34:13: style: Variable 'err' is assigned a value that is never used. [unreadVariable] - int err = Settings::Settings_Error::eError_None; +sources/storage/Settings.cpp:90:9: style: Redundant initialization for 'err'. The initialized value is overwritten before it is read. [redundantInitialization] + err = readCategory(eConfigurationsLocale); + ^ +sources/storage/Settings.cpp:89:13: note: err is initialized + int err = Settings_Error::eError_None; ^ -sources/storage/TreatmentLog.cpp:192:41: style: Variable 'mTreatmentDurationFmt' is assigned a value that is never used. [unreadVariable] - QString mTreatmentDurationFmt = QTime (0, 0).addSecs(int(vData.mTreatmentDuration )).toString(_timeFormat); - ^ -sources/storage/TreatmentLog.cpp:193:41: style: Variable 'mActualTreatmentDurationFmt' is assigned a value that is never used. [unreadVariable] - QString mActualTreatmentDurationFmt = QTime (0, 0).addSecs(int(vData.mActualTreatmentDuration )).toString(_timeFormat); - ^ +sources/storage/Settings.cpp:90:9: note: err is overwritten + err = readCategory(eConfigurationsLocale); + ^ sources/utility/format.cpp:98:19: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] mData += fromVariant(item); ^ @@ -486,90 +201,24 @@ sources/utility/qrcodegen.cpp:651:5: style: Consider using std::count_if algorithm instead of a raw loop. [useStlAlgorithm] dark++; ^ -sources/view/settings/VNetworkModel.h:75:14: warning: Virtual function 'rowCount' is called from constructor 'VNetworkModel(QAbstractListModel*parent=nullptr)' at line 28. Dynamic binding is not used. [virtualCallInConstructor] - int rowCount (const QModelIndex &parent = QModelIndex() ) const override; - ^ -sources/view/settings/VNetworkModel.cpp:28:5: note: Calling initConnections - initConnections(); - ^ -sources/view/settings/VNetworkModel.cpp:72:38: note: Calling doScan - &_WifiInterface, SLOT( doScan())); - ^ -sources/view/settings/VNetworkModel.cpp:205:5: note: Calling removeAllRows - removeAllRows(); - ^ -sources/view/settings/VNetworkModel.cpp:118:39: note: Calling rowCount - beginRemoveRows(QModelIndex(), 0, rowCount()); - ^ -sources/view/settings/VNetworkModel.h:75:14: note: rowCount is a virtual function - int rowCount (const QModelIndex &parent = QModelIndex() ) const override; - ^ -sources/view/settings/VNetworkModel.cpp:265:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] - { - ^ -sources/view/settings/VNetworkModel.cpp:283:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] - { - ^ -sources/view/settings/VSettings.cpp:199:17: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] - keyList += keys.join(""); - ^ -unittests/tst_messaging.cpp:294:18: style: Variable 'msg.actionId' is reassigned a value before the old one has been used. [redundantAssignment] - msg.actionId = Gui::GuiActionType::ID_RawData; - ^ -unittests/tst_messaging.cpp:279:18: note: msg.actionId is assigned - msg.actionId = Gui::GuiActionType::ID_AlarmTriggered; - ^ -unittests/tst_messaging.cpp:294:18: note: msg.actionId is overwritten - msg.actionId = Gui::GuiActionType::ID_RawData; - ^ -unittests/tst_views.cpp:711:26: style: Variable 'action' is assigned a value that is never used. [unreadVariable] - GuiActionType action = GuiActionType::ID_AdjustParametersValidationRsp; - ^ -unittests/tst_views.cpp:406:0: style: The function 'VCreateTreatment_check_init' is never used. [unusedFunction] +sources/storage/StorageGlobals.cpp:155:0: style: The function 'Scripts_Path_Name' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:660:0: style: The function 'VCreateTreatment_enums' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:124:0: style: The function 'backupFile' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:708:0: style: The function 'VCreateTreatment_fw_validation_response' is never used. [unusedFunction] +sources/model/settings/MSettings.cpp:113:0: style: The function 'categorys' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:676:0: style: The function 'VCreateTreatment_json' is never used. [unusedFunction] +sources/storage/Logger.cpp:405:0: style: The function 'concurrentExportIsOk' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:778:0: style: The function 'VCreateTreatment_load_parameter_ranges' is never used. [unusedFunction] +sources/storage/Settings.cpp:222:0: style: The function 'configurationsMove' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:602:0: style: The function 'VCreateTreatment_save' is never used. [unusedFunction] +sources/utility/encryption.cpp:154:0: style: The function 'configurationsPassword' is never used. [unusedFunction] ^ -unittests/tst_views.cpp:581:0: style: The function 'VCreateTreatment_save_csv' is never used. [unusedFunction] - -^ -unittests/tst_views.cpp:71:0: style: The function 'VCreateTreatment_validation' is never used. [unusedFunction] - -^ -unittests/tst_views.cpp:231:0: style: The function 'VCreateTreatment_validation_ranges' is never used. [unusedFunction] - -^ -unittests/tst_views.cpp:42:0: style: The function 'VTreatmentAdjustmentUltrafiltrationState_text' is never used. [unusedFunction] - -^ -unittests/tst_views.cpp:28:0: style: The function 'VTreatmentAdjustmentsResponse_text_NoReason' is never used. [unusedFunction] - -^ -unittests/tst_views.cpp:35:0: style: The function 'VTreatmentAdjustmentsResponse_text_WAReason' is never used. [unusedFunction] - -^ -sources/view/settings/VSettings.cpp:323:0: style: The function 'checkServicePasswordSet' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:312:0: style: The function 'cleanup' is never used. [unusedFunction] - -^ -unittests/tst_acknow.cpp:164:0: style: The function 'cleanupTestCase' is never used. [unusedFunction] - -^ sources/utility/encryption.cpp:42:0: style: The function 'cryptClose' is never used. [unusedFunction] ^ @@ -579,168 +228,24 @@ sources/utility/encryption.cpp:30:0: style: The function 'cryptOpen' is never used. [unusedFunction] ^ -sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentPatientConnectionBegin.cpp:49:0: style: The function 'doBegin' is never used. [unusedFunction] +sources/model/settings/MSettings.cpp:155:0: style: The function 'datetimeFormat' is never used. [unusedFunction] ^ -sources/view/VTreatmentCreate.cpp:84:0: style: The function 'doCancel' is never used. [unusedFunction] +sources/utility/qrcodegen.cpp:247:0: style: The function 'encodeText' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:246:0: style: The function 'doCheckIfConnected' is never used. [unusedFunction] +sources/utility/types.cpp:28:0: style: The function 'floatCompare' is never used. [unusedFunction] ^ -sources/view/hd/alarm/VAlarmStatus.cpp:95:0: style: The function 'doClearCondition' is never used. [unusedFunction] +sources/utility/format.cpp:204:0: style: The function 'fromEpoch' is never used. [unusedFunction] ^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentRecirculate.cpp:83:0: style: The function 'doConfirmDisconnect' is never used. [unusedFunction] +sources/utility/format.cpp:216:0: style: The function 'fromVariantList' is never used. [unusedFunction] ^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentRecirculate.cpp:59:0: style: The function 'doConfirmReconnect' is never used. [unusedFunction] +sources/utility/types.cpp:44:0: style: The function 'getBits' is never used. [unusedFunction] ^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:90:0: style: The function 'doDisinfectCancel' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:138:0: style: The function 'doDisinfectChemFlush' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:129:0: style: The function 'doDisinfectChemical' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:101:0: style: The function 'doDisinfectClear' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:152:0: style: The function 'doDisinfectConfirm' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:111:0: style: The function 'doDisinfectFlush' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:120:0: style: The function 'doDisinfectHeat' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:78:0: style: The function 'doDisinfectInitiate' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:147:0: style: The function 'doDisinfectROPermeate' is never used. [unusedFunction] - -^ -sources/gui/GuiView.cpp:258:0: style: The function 'doExportListInsert' is never used. [unusedFunction] - -^ -sources/gui/GuiView.cpp:301:0: style: The function 'doExportListPercent' is never used. [unusedFunction] - -^ -sources/gui/GuiView.cpp:289:0: style: The function 'doExportListSelect' is never used. [unusedFunction] - -^ -sources/gui/GuiView.cpp:418:0: style: The function 'doGenerateQRImage' is never used. [unusedFunction] - -^ -sources/view/VTreatmentCreate(legacy).cpp:504:0: style: The function 'doGetPrescriptionParameterValues' is never used. [unusedFunction] - -^ -sources/view/settings/VDateTime.cpp:59:0: style: The function 'doInit' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:136:0: style: The function 'doInitBluetoothPairedQuery' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:111:0: style: The function 'doInitBluetoothPairedReset' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:37:0: style: The function 'doInitBrightness' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:71:0: style: The function 'doInitCryptSetup' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:225:0: style: The function 'doInitDecommission' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:196:0: style: The function 'doInitFactoryReset' is never used. [unusedFunction] - -^ -sources/device/DeviceView.cpp:161:0: style: The function 'doInitRootSSHAccess' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentInitTreatment.cpp:49:0: style: The function 'doInitiate' is never used. [unusedFunction] - -^ -sources/view/VEventSpy.cpp:149:0: style: The function 'doMouseReset' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustPatientDisconnectionConfirm.cpp:35:0: style: The function 'doNotify' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentUltrafiltrationConfirm.cpp:66:0: style: The function 'doOptionDuration' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentUltrafiltrationConfirm.cpp:54:0: style: The function 'doOptionRate' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentHeparin.cpp:41:0: style: The function 'doPause' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentDisposablesPrime.cpp:49:0: style: The function 'doPrime' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentRecirculate.cpp:51:0: style: The function 'doReconnect' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/posttreatment/VPostTreatmentAdjustTreatmentLog.cpp:54:0: style: The function 'doRequest' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/common/VCommonAdjustmentVitals.cpp:99:0: style: The function 'doReset' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentWaterSample.cpp:64:0: style: The function 'doResult' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentHeparin.cpp:51:0: style: The function 'doResume' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentWaterSample.cpp:51:0: style: The function 'doSample' is never used. [unusedFunction] - -^ -sources/view/settings/VNetworkModel.cpp:370:0: style: The function 'doSetDNS' is never used. [unusedFunction] - -^ -sources/view/settings/VNetworkModel.cpp:352:0: style: The function 'doSetGateway' is never used. [unusedFunction] - -^ -sources/view/settings/VNetworkModel.cpp:343:0: style: The function 'doSetIPAddress' is never used. [unusedFunction] - -^ -sources/view/settings/VNetworkModel.cpp:361:0: style: The function 'doSetSubnetMask' is never used. [unusedFunction] - -^ -sources/view/hd/alarm/VAlarmStatus.cpp:78:0: style: The function 'doSilence' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/common/VCommonAdjustmentVitals.cpp:87:0: style: The function 'doSkip' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentSaline.cpp:58:0: style: The function 'doStop' is never used. [unusedFunction] - -^ -sources/view/VEventSpy.cpp:192:0: style: The function 'doTouchReset' is never used. [unusedFunction] - -^ -sources/view/hd/adjustment/treatment/VTreatmentAdjustmentRecirculate.cpp:75:0: style: The function 'doTreatmentEnd' is never used. [unusedFunction] - -^ -sources/view/hd/alarm/VAlarmStatus.cpp:57:0: style: The function 'doUserActionEnd' is never used. [unusedFunction] - -^ -sources/view/hd/alarm/VAlarmStatus.cpp:67:0: style: The function 'doUserActionOk' is never used. [unusedFunction] - -^ -sources/view/hd/alarm/VAlarmStatus.cpp:37:0: style: The function 'doUserActionResume' is never used. [unusedFunction] - -^ -sources/view/hd/alarm/VAlarmStatus.cpp:47:0: style: The function 'doUserActionRinseback' is never used. [unusedFunction] - -^ sources/utility/qrcodegen.cpp:372:0: style: The function 'getErrorCorrectionLevel' is never used. [unusedFunction] ^ @@ -750,671 +255,80 @@ sources/utility/qrcodegen.cpp:362:0: style: The function 'getVersion' is never used. [unusedFunction] ^ -unittests/tst_canbus.cpp:31:0: style: The function 'initTestCase' is never used. [unusedFunction] +sources/utility/encryption.cpp:127:0: style: The function 'isDefaultServicePassword' is never used. [unusedFunction] ^ -unittests/tst_canbus.cpp:35:0: style: The function 'initTestCase_data' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:261:0: style: The function 'isMounted' is never used. [unusedFunction] ^ -sources/view/hd/alarm/VAlarmStatus.cpp:205:0: style: The function 'instructionKeys' is never used. [unusedFunction] +sources/storage/Settings.cpp:256:0: style: The function 'loadTranslation' is never used. [unusedFunction] ^ -sources/view/hd/alarm/VAlarmStatus.cpp:206:0: style: The function 'instructionValues' is never used. [unusedFunction] +main.cpp:494:0: style: The function 'lockdown' is never used. [unusedFunction] ^ -sources/view/settings/VSettings.cpp:256:0: style: The function 'isPasswordValid' is never used. [unusedFunction] +sources/canbus/MessageInterpreter.cpp:149:0: style: The function 'logInvalidLength' is never used. [unusedFunction] ^ -sources/view/settings/VSettings.cpp:298:0: style: The function 'isServicePasswordMatch' is never used. [unusedFunction] - -^ -main.cpp:417:0: style: The function 'lockdown' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:66:0: style: The function 'logDatum' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:74:0: style: The function 'logError' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:119:0: style: The function 'logError_Unhandled_TreatmentStates' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:91:0: style: The function 'logError_gDisableUnhandledReport_False' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:106:0: style: The function 'logError_gDisableUnhandledReport_True' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:58:0: style: The function 'logEvent' is never used. [unusedFunction] - -^ -unittests/tst_logging.cpp:82:0: style: The function 'logUnknown' is never used. [unusedFunction] - -^ sources/utility/qrcodegen.cpp:143:0: style: The function 'makeEci' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1209:0: style: The function 'mimic' is never used. [unusedFunction] - -^ sources/utility/encryption.cpp:48:0: style: The function 'mkfsExt4' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:170:0: style: The function 'moveFolder' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:162:0: style: The function 'moveFolder' is never used. [unusedFunction] ^ -unittests/tst_logging.cpp:149:0: style: The function 'readUnknown' is never used. [unusedFunction] +sources/ApplicationController.cpp:182:0: style: The function 'onActionReceive' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:211:0: style: The function 'removeFiles' is never used. [unusedFunction] +sources/storage/Logger.cpp:254:0: style: The function 'onCryptSetupMount' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1289:0: style: The function 'requestBattery' is never used. [unusedFunction] +sources/storage/Logger.cpp:418:0: style: The function 'onExportLogs' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1276:0: style: The function 'requestInformation' is never used. [unusedFunction] +sources/ApplicationController.cpp:423:0: style: The function 'onQuitApplication' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1257:0: style: The function 'requestMeasurements' is never used. [unusedFunction] +sources/storage/Logger.cpp:540:0: style: The function 'onSDCardSpaceChange' is never used. [unusedFunction] ^ -sources/view/settings/VBluetooth.cpp:79:0: style: The function 'roleNames' is never used. [unusedFunction] +sources/storage/Logger.cpp:518:0: style: The function 'onSDCardStateChange' is never used. [unusedFunction] ^ -sources/device/DeviceController.cpp:274:0: style: The function 'sdcardSpaceCheck' is never used. [unusedFunction] +sources/storage/Logger.cpp:579:0: style: The function 'onSettingsPartitionSpaceChange' is never used. [unusedFunction] ^ -unittests/tst_logging.cpp:135:0: style: The function 'setLogPath_F' is never used. [unusedFunction] +sources/storage/Logger.cpp:562:0: style: The function 'onSettingsPartitionStateChange' is never used. [unusedFunction] ^ -unittests/tst_logging.cpp:142:0: style: The function 'setLogPath_T' is never used. [unusedFunction] +sources/storage/Settings.cpp:87:0: style: The function 'readLocale' is never used. [unusedFunction] ^ -sources/device/DeviceController.cpp:375:0: style: The function 'settingsPartitionSpaceCheck' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:203:0: style: The function 'removeFiles' is never used. [unusedFunction] ^ -sources/MainTimer.cpp:137:0: style: The function 'timerEvent' is never used. [unusedFunction] +sources/storage/Settings.cpp:177:0: style: The function 'save' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:303:0: style: The function 'tmpUsable' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:466:0: style: The function 'sha256sum' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:62:0: style: The function 'tst_AcknowModel_Init' is never used. [unusedFunction] +sources/model/settings/MSettings.cpp:146:0: style: The function 'systemLanguage' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:89:0: style: The function 'tst_AcknowModel_Receive_Acknow' is never used. [unusedFunction] +sources/MainTimer.cpp:137:0: style: The function 'timerEvent' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:71:0: style: The function 'tst_AcknowModel_Receive_Normal' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:295:0: style: The function 'tmpUsable' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:118:0: style: The function 'tst_AcknowModel_Transmit_Acknow' is never used. [unusedFunction] +sources/utility/format.cpp:181:0: style: The function 'toStringList' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:107:0: style: The function 'tst_AcknowModel_Transmit_Normal' is never used. [unusedFunction] +sources/utility/encryption.cpp:54:0: style: The function 'varSalt' is never used. [unusedFunction] ^ -unittests/tst_acknow.cpp:134:0: style: The function 'tst_AcknowModel_onAcknowReceive_Correct' is never used. [unusedFunction] - -^ -unittests/tst_acknow.cpp:157:0: style: The function 'tst_AcknowModel_onAcknowReceive_Incorrect' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:739:0: style: The function 'tst_AlarmGenerator_setBits_OutOfRange' is never used. [unusedFunction] - -^ -unittests/tst_initializations.cpp:30:0: style: The function 'tst_ApplicationController_init' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:45:0: style: The function 'tst_CanInterface_Connect_Error_Interface' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:55:0: style: The function 'tst_CanInterface_Connect_NoError' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:631:0: style: The function 'tst_DGDrainPumpData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:617:0: style: The function 'tst_DGDrainPumpData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:792:0: style: The function 'tst_DGHeatersData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:774:0: style: The function 'tst_DGHeatersData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:842:0: style: The function 'tst_DGLoadCellReadingsData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:820:0: style: The function 'tst_DGLoadCellReadingsData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:668:0: style: The function 'tst_DGOperationMode' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:658:0: style: The function 'tst_DGOperationMode_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:588:0: style: The function 'tst_DGPressuresData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:566:0: style: The function 'tst_DGPressuresData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:538:0: style: The function 'tst_DGROPumpData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:520:0: style: The function 'tst_DGROPumpData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:712:0: style: The function 'tst_DGReservoirData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:694:0: style: The function 'tst_DGReservoirData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:925:0: style: The function 'tst_DGTemperaturesData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:871:0: style: The function 'tst_DGTemperaturesData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:748:0: style: The function 'tst_DGValvesStates' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:740:0: style: The function 'tst_DGValvesStates_data' is never used. [unusedFunction] - -^ -unittests/tst_initializations.cpp:35:0: style: The function 'tst_DeviceController_init' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:85:0: style: The function 'tst_FrameInterface_ActionTransmit_KeepAlive' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:115:0: style: The function 'tst_FrameInterface_ActionTransmit_PowerOff' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:99:0: style: The function 'tst_FrameInterface_ActionTransmit_PowerOff_Accepted' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:107:0: style: The function 'tst_FrameInterface_ActionTransmit_PowerOff_Rejected' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:123:0: style: The function 'tst_FrameInterface_ActionTransmit_Raw' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:134:0: style: The function 'tst_FrameInterface_ActionTransmit_ShortPayload' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:142:0: style: The function 'tst_FrameInterface_ActionTransmit_Unknown' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:201:0: style: The function 'tst_FrameInterface_FrameReceived_CRC_Error' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:188:0: style: The function 'tst_FrameInterface_FrameReceived_Channel_Incorrect' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:175:0: style: The function 'tst_FrameInterface_FrameReceived_Channel_NotListen' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:279:0: style: The function 'tst_FrameInterface_FrameReceived_LongFrame_AlarmStatus_LessData' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:240:0: style: The function 'tst_FrameInterface_FrameReceived_LongFrame_BloodFlow' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:260:0: style: The function 'tst_FrameInterface_FrameReceived_LongFrame_BloodFlow_LessData' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:227:0: style: The function 'tst_FrameInterface_FrameReceived_LongFrame_Error' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:149:0: style: The function 'tst_FrameInterface_FrameReceived_PowerOff' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:162:0: style: The function 'tst_FrameInterface_FrameReceived_PowerOff_Timeout' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:214:0: style: The function 'tst_FrameInterface_FrameReceived_ShortFrame_Error' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:302:0: style: The function 'tst_FrameInterface_FrameReceived_removeHead_EmptyList' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:67:0: style: The function 'tst_FrameInterface_Init' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:79:0: style: The function 'tst_FrameInterface_ReInit' is never used. [unusedFunction] - -^ -unittests/tst_canbus.cpp:92:0: style: The function 'tst_FrameInterface_TransmitFrame_LongerData' is never used. [unusedFunction] - -^ -unittests/tst_initializations.cpp:40:0: style: The function 'tst_FrameInterface_init' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:95:0: style: The function 'tst_MAdjustBloodDialysateResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:72:0: style: The function 'tst_MAdjustBloodDialysateResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:206:0: style: The function 'tst_MAdjustDurationResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:183:0: style: The function 'tst_MAdjustDurationResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1787:0: style: The function 'tst_MAdjustInitTreatmentResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1772:0: style: The function 'tst_MAdjustInitTreatmentResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:487:0: style: The function 'tst_MAdjustPressuresLimitsResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:456:0: style: The function 'tst_MAdjustPressuresLimitsResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:426:0: style: The function 'tst_MAdjustUltrafiltrationConfirmResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:399:0: style: The function 'tst_MAdjustUltrafiltrationConfirmResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:366:0: style: The function 'tst_MAdjustUltrafiltrationEditResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:327:0: style: The function 'tst_MAdjustUltrafiltrationEditResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:254:0: style: The function 'tst_MAdjustUltrafiltrationInitResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:235:0: style: The function 'tst_MAdjustUltrafiltrationInitResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:300:0: style: The function 'tst_MAdjustUltrafiltrationStateResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:281:0: style: The function 'tst_MAdjustUltrafiltrationStateResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1974:0: style: The function 'tst_MAdjustmentTreatmentParametersRequest' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1936:0: style: The function 'tst_MAlarmAcknowledgeRequest' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1494:0: style: The function 'tst_MAlarmCleared' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1484:0: style: The function 'tst_MAlarmCleared_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1418:0: style: The function 'tst_MAlarmStatus' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1394:0: style: The function 'tst_MAlarmStatus_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1379:0: style: The function 'tst_MAlarmStatus_text' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1458:0: style: The function 'tst_MAlarmTriggered' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1448:0: style: The function 'tst_MAlarmTriggered_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1149:0: style: The function 'tst_MBloodFlowData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1115:0: style: The function 'tst_MBloodFlowData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1952:0: style: The function 'tst_MConfirmTreatmentRequest' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1215:0: style: The function 'tst_MDialysateFlowData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1181:0: style: The function 'tst_MDialysateFlowData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1960:0: style: The function 'tst_MEndTreatmentRequest' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1825:0: style: The function 'tst_MEndTreatmentResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1814:0: style: The function 'tst_MEndTreatmentResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1023:0: style: The function 'tst_MHDOperationModeData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1013:0: style: The function 'tst_MHDOperationModeData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1912:0: style: The function 'tst_MHeparinResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1898:0: style: The function 'tst_MHeparinResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1944:0: style: The function 'tst_MInitTreatmentRequest' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1083:0: style: The function 'tst_MOutletFlowData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1049:0: style: The function 'tst_MOutletFlowData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1356:0: style: The function 'tst_MPowerOff' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1349:0: style: The function 'tst_MPowerOff_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1745:0: style: The function 'tst_MPreTreatmentPrime' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1730:0: style: The function 'tst_MPreTreatmentPrime_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1319:0: style: The function 'tst_MPressureOcclusionData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1293:0: style: The function 'tst_MPressureOcclusionData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1870:0: style: The function 'tst_MSalineBolusResponse' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1852:0: style: The function 'tst_MSalineBolusResponse_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1704:0: style: The function 'tst_MTreatmentHeparinData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1694:0: style: The function 'tst_MTreatmentHeparinData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1600:0: style: The function 'tst_MTreatmentParametersResp' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1520:0: style: The function 'tst_MTreatmentParametersResp_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:153:0: style: The function 'tst_MTreatmentRanges' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:122:0: style: The function 'tst_MTreatmentRanges_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1665:0: style: The function 'tst_MTreatmentSalineBolusData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1647:0: style: The function 'tst_MTreatmentSalineBolusData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:984:0: style: The function 'tst_MTreatmentStateData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:962:0: style: The function 'tst_MTreatmentStateData_data' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1265:0: style: The function 'tst_MTreatmentTimeData' is never used. [unusedFunction] - -^ -unittests/tst_models.cpp:1247:0: style: The function 'tst_MTreatmentTimeData_data' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:600:0: style: The function 'tst_MessageBuilder_addActionId' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:627:0: style: The function 'tst_MessageBuilder_addData_LongerThanMax' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:614:0: style: The function 'tst_MessageBuilder_addData_shorterLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:666:0: style: The function 'tst_MessageBuilder_buildFrames_addActionId' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:679:0: style: The function 'tst_MessageBuilder_buildFrames_addData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:692:0: style: The function 'tst_MessageBuilder_buildFrames_eLenCanFrame' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:643:0: style: The function 'tst_MessageBuilder_checkCRC' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:655:0: style: The function 'tst_MessageBuilder_getHeader' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:715:0: style: The function 'tst_MessageDispatcher_actionTransmit' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:727:0: style: The function 'tst_MessageDispatcher_actionTransmit_Unknown' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:274:0: style: The function 'tst_MessageInterpreter_HD_emptyMessages' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:162:0: style: The function 'tst_MessageInterpreter_adjustBloodDialysateData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:176:0: style: The function 'tst_MessageInterpreter_adjustBloodDialysateData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:190:0: style: The function 'tst_MessageInterpreter_adjustDurationData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:204:0: style: The function 'tst_MessageInterpreter_adjustDurationData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:246:0: style: The function 'tst_MessageInterpreter_adjustUltrafiltrationConfirmData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:260:0: style: The function 'tst_MessageInterpreter_adjustUltrafiltrationConfirmData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:218:0: style: The function 'tst_MessageInterpreter_adjustUltrafiltrationEditData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:232:0: style: The function 'tst_MessageInterpreter_adjustUltrafiltrationEditData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:87:0: style: The function 'tst_MessageInterpreter_bloodFlowData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:386:0: style: The function 'tst_MessageInterpreter_canbusFaultCountData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:400:0: style: The function 'tst_MessageInterpreter_canbusFaultCountData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:102:0: style: The function 'tst_MessageInterpreter_dialysateInletFlowData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:117:0: style: The function 'tst_MessageInterpreter_dialysateOutletFlowData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:451:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustBloodDialysateReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:465:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustDurationReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:563:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustHeparinReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:572:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustPressuresReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:549:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustSalineReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:535:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustUltrafiltrationConfirmReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:521:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustUltrafiltrationEditReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:493:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustUltrafiltrationInitReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:507:0: style: The function 'tst_MessageInterpreter_interpretMessage_AdjustUltrafiltrationStateReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:479:0: style: The function 'tst_MessageInterpreter_interpretMessage_AlarmSilenceReq' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:586:0: style: The function 'tst_MessageInterpreter_interpretMessage_CANBusFaultCount' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:423:0: style: The function 'tst_MessageInterpreter_interpretMessage_DG_Unhandled' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:415:0: style: The function 'tst_MessageInterpreter_interpretMessage_String' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:47:0: style: The function 'tst_MessageInterpreter_isPayloadLenValid' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:60:0: style: The function 'tst_MessageInterpreter_isPayloadLenValid_undefined' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:33:0: style: The function 'tst_MessageInterpreter_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:330:0: style: The function 'tst_MessageInterpreter_loadCellReadingsData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:344:0: style: The function 'tst_MessageInterpreter_loadCellReadingsData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:435:0: style: The function 'tst_MessageInterpreter_notify_fromByteArray' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:73:0: style: The function 'tst_MessageInterpreter_powerOffData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:147:0: style: The function 'tst_MessageInterpreter_pressureOcclusionData' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:358:0: style: The function 'tst_MessageInterpreter_temperatureSensorsData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:372:0: style: The function 'tst_MessageInterpreter_temperatureSensorsData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:302:0: style: The function 'tst_MessageInterpreter_treatmentRangesData_isType' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:316:0: style: The function 'tst_MessageInterpreter_treatmentRangesData_payloadLen' is never used. [unusedFunction] - -^ -unittests/tst_messaging.cpp:132:0: style: The function 'tst_MessageInterpreter_treatmentTime' is never used. [unusedFunction] - -^ -unittests/tst_threads.cpp:36:0: style: The function 'tst_Thread_init' is never used. [unusedFunction] - -^ -unittests/tst_threads.cpp:48:0: style: The function 'tst_Thread_names' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:35:0: style: The function 'tst_floatCompare_isMatch' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:30:0: style: The function 'tst_floatCompare_noMatch' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:172:0: style: The function 'tst_fromvariant_Bool_False' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:164:0: style: The function 'tst_fromvariant_Bool_True' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:72:0: style: The function 'tst_fromvariant_ByteArray' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:83:0: style: The function 'tst_fromvariant_Float' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:116:0: style: The function 'tst_fromvariant_Int_Neg' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:105:0: style: The function 'tst_fromvariant_Int_Pos' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:67:0: style: The function 'tst_fromvariant_IsString' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:127:0: style: The function 'tst_fromvariant_List' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:56:0: style: The function 'tst_fromvariant_NoString' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:94:0: style: The function 'tst_fromvariant_UInt' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:180:0: style: The function 'tst_fromvariant_Undefined' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:264:0: style: The function 'tst_getValue_len_eq' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:281:0: style: The function 'tst_getValue_len_gt' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:238:0: style: The function 'tst_getValue_len_log' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:249:0: style: The function 'tst_getValue_len_lt' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:48:0: style: The function 'tst_getbits_IsError' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:40:0: style: The function 'tst_getbits_NoError' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:312:0: style: The function 'tst_safeIncrement_GtMaxValue_Step1' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:305:0: style: The function 'tst_safeIncrement_GtMaxValue_Step10' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:298:0: style: The function 'tst_safeIncrement_StepZero' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:188:0: style: The function 'tst_toStringList_Default' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:221:0: style: The function 'tst_toStringList_Prefix' is never used. [unusedFunction] - -^ -unittests/tst_utilities.cpp:204:0: style: The function 'tst_toStringList_RemoveDuplicate' is never used. [unusedFunction] - -^ -sources/view/settings/VSettings.cpp:318:0: style: The function 'updateServicePassword' is never used. [unusedFunction] - -^ -sources/device/DeviceController.cpp:253:0: style: The function 'usbCheck' is never used. [unusedFunction] - -^ -sources/wifi/WifiInterface.cpp:936:0: style: The function 'variantListToSecurityTypes' is never used. [unusedFunction] - -^ nofile:0:0: information: Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config. [missingInclude]