Index: cppcheck.err =================================================================== diff -u -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 -rb6f86ce89361e33d989f6a9d01eb94c344a6384f --- cppcheck.err (.../cppcheck.err) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) +++ cppcheck.err (.../cppcheck.err) (revision b6f86ce89361e33d989f6a9d01eb94c344a6384f) @@ -1,51 +1,51 @@ -07/18/2023 3:05 -Behrouz NematiPour +02/28/2024 17:22 +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:107:14: style: Condition '!createFolder' is always false [knownConditionTrueFalse] +sources/storage/FileHandler.h:108:14: style: Condition '!createFolder' is always false [knownConditionTrueFalse] if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ -sources/storage/FileHandler.h:99:35: note: Assignment 'createFolder=true', assigned value is 1 +sources/storage/FileHandler.h:100:35: note: Assignment 'createFolder=true', assigned value is 1 bool createFolder = true; ^ -sources/storage/FileHandler.h:107:14: note: Condition '!createFolder' is always false +sources/storage/FileHandler.h:108:14: note: Condition '!createFolder' is always false if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ -sources/storage/FileHandler.h:96:17: style: Local variable 'totalSize' shadows outer function [shadowFunction] +sources/storage/FileHandler.h:97:17: style: Local variable 'totalSize' shadows outer function [shadowFunction] qint64 totalSize = 0; ^ -sources/storage/FileHandler.h:77:21: note: Shadowed declaration +sources/storage/FileHandler.h:78:21: note: Shadowed declaration static quint64 totalSize(const QFileInfoList &vFileInfoList); ^ -sources/storage/FileHandler.h:96:17: note: Shadow variable +sources/storage/FileHandler.h:97: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:91:33: style: Variable 'err' is assigned a value that is never used. [unreadVariable] +sources/storage/FileHandler.h:92:33: style: Variable 'err' is assigned a value that is never used. [unreadVariable] FileCopyError_Enums err = eOK; ^ -sources/ApplicationPost.cpp:115:9: style: Condition '!ok' is always false [knownConditionTrueFalse] +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:113:15: note: Assignment 'ok=true', assigned value is 1 +sources/ApplicationPost.cpp:162:15: note: Assignment 'ok=true', assigned value is 1 bool ok = true; ^ -sources/ApplicationPost.cpp:115:9: note: Condition '!ok' is always false +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:253:9: style: Condition '!ok' is always false [knownConditionTrueFalse] +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:251:15: note: Assignment 'ok=true', assigned value is 1 +sources/ApplicationPost.cpp:300:15: note: Assignment 'ok=true', assigned value is 1 bool ok = true; ^ -sources/ApplicationPost.cpp:253:9: note: Condition '!ok' is always false +sources/ApplicationPost.cpp:302:9: note: Condition '!ok' is always false if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_HD_UI_POST_FAILURE_SOUND); ^ 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: @@ -93,34 +93,40 @@ 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:431:13: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] +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:239:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:263:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:534:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:589:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:598:51: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:598:76: style: Variable 'args' is assigned a value that is never used. [unreadVariable] +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:620:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +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:684:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] +sources/cloudsync/CloudSyncController.cpp:747:27: style: Variable 'error' is assigned a value that is never used. [unreadVariable] Errors_Enum error = eError_Unknown; ^ -sources/device/DeviceView.h:68:32: style: The condition 'vData.mAccepted || !vData.mAccepted && vData.mReason!=0' is equivalent to 'vData.mAccepted || vData.mReason!=0'. [redundantCondition] +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] @@ -168,10 +174,10 @@ 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:113:5: warning: Member variable 'MDGReservoir::_data' is not initialized in the constructor. [uninitMemberVar] +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:136:5: warning: Member variable 'MDGTemperatures::_data' is not initialized in the constructor. [uninitMemberVar] +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] @@ -198,6 +204,9 @@ 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 () { } ^ @@ -234,6 +243,9 @@ 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 () { } ^ @@ -324,7 +336,7 @@ 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:77:5: warning: Member variable 'MHDAirTrapData::_data' is not initialized in the constructor. [uninitMemberVar] +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] @@ -336,6 +348,9 @@ 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 () { } ^ @@ -345,6 +360,9 @@ 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() { } ^ @@ -372,7 +390,7 @@ 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:99:5: warning: Member variable 'MOutletFlow::_data' is not initialized in the constructor. [uninitMemberVar] +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] @@ -417,16 +435,25 @@ 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:243:10: style: Condition 'ok' is always true [knownConditionTrueFalse] +sources/storage/Logger.cpp:236:9: style: Condition 'vUseTempPath' is always false [knownConditionTrueFalse] + if (vUseTempPath) { + ^ +sources/storage/Logger.cpp:233:20: note: Assignment 'vUseTempPath=false', assigned value is 0 + vUseTempPath = false; + ^ +sources/storage/Logger.cpp:236:9: note: Condition 'vUseTempPath' is always false + if (vUseTempPath) { + ^ +sources/storage/Logger.cpp:256:10: style: Condition 'ok' is always true [knownConditionTrueFalse] if ( ok && ! setLogPath(LogType::eLogAppED) ) ok = false; ^ -sources/storage/Logger.cpp:242:15: note: Assignment 'ok=true', assigned value is 1 +sources/storage/Logger.cpp:255:15: note: Assignment 'ok=true', assigned value is 1 bool ok = true; ^ -sources/storage/Logger.cpp:243:10: note: Condition 'ok' is always true +sources/storage/Logger.cpp:256:10: note: Condition 'ok' is always true if ( ok && ! setLogPath(LogType::eLogAppED) ) ok = false; ^ -sources/storage/Logger.cpp:189: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: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: void f(int x) { int i = 0; @@ -444,28 +471,43 @@ 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/TreatmentLog.cpp:487:10: style: Condition '!ok' is always false [knownConditionTrueFalse] - if ( ! ok ) { - ^ -sources/storage/TreatmentLog.cpp:481:10: note: Assuming that condition '!ok' is not redundant - if ( ! ok ) { - ^ -sources/storage/TreatmentLog.cpp:487:10: note: Condition '!ok' is always false - if ( ! ok ) { - ^ -sources/storage/TreatmentLog.cpp:92:41: style: Variable 'mTreatmentDurationFmt' is assigned a value that is never used. [unreadVariable] +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:93:41: style: Variable 'mActualTreatmentDurationFmt' is assigned a value that is never used. [unreadVariable] +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/utility/format.cpp:98:19: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] mData += fromVariant(item); ^ -sources/view/settings/VNetworkModel.cpp:262:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] +sources/utility/qrcodegen.cpp:581:56: style: Suspicious expression. Boolean result is used in bitwise operation. The operator '!' and the comparison operators have higher precedence than bitwise operators. It is recommended that the expression is clarified with parentheses. [clarifyCondition] + modules.at(y).at(x) = modules.at(y).at(x) ^ (invert & !isFunction.at(y).at(x)); + ^ +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:280: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] @@ -519,7 +561,7 @@ unittests/tst_views.cpp:35:0: style: The function 'VTreatmentAdjustmentsResponse_text_WAReason' is never used. [unusedFunction] ^ -sources/view/settings/VSettings.cpp:316:0: style: The function 'checkServicePasswordSet' 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] @@ -528,22 +570,22 @@ unittests/tst_acknow.cpp:164:0: style: The function 'cleanupTestCase' is never used. [unusedFunction] ^ -sources/utility/encryption.cpp:28:0: style: The function 'cryptClose' is never used. [unusedFunction] +sources/utility/encryption.cpp:42:0: style: The function 'cryptClose' is never used. [unusedFunction] ^ -sources/utility/encryption.cpp:22:0: style: The function 'cryptFormat' is never used. [unusedFunction] +sources/utility/encryption.cpp:36:0: style: The function 'cryptFormat' is never used. [unusedFunction] ^ -sources/utility/encryption.cpp:16:0: style: The function 'cryptOpen' is never used. [unusedFunction] +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/view/VTreatmentCreate.cpp:82:0: style: The function 'doCancel' is never used. [unusedFunction] +sources/view/VTreatmentCreate.cpp:84:0: style: The function 'doCancel' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:243:0: style: The function 'doCheckIfConnected' is never used. [unusedFunction] +sources/view/settings/VNetworkModel.cpp:246:0: style: The function 'doCheckIfConnected' is never used. [unusedFunction] ^ sources/view/hd/alarm/VAlarmStatus.cpp:95:0: style: The function 'doClearCondition' is never used. [unusedFunction] @@ -582,40 +624,43 @@ sources/view/hd/adjustment/disinfect/VDisinfectAdjustDisinfect.cpp:147:0: style: The function 'doDisinfectROPermeate' is never used. [unusedFunction] ^ -sources/gui/GuiView.cpp:256:0: style: The function 'doExportListInsert' is never used. [unusedFunction] +sources/gui/GuiView.cpp:258:0: style: The function 'doExportListInsert' is never used. [unusedFunction] ^ -sources/gui/GuiView.cpp:299:0: style: The function 'doExportListPercent' is never used. [unusedFunction] +sources/gui/GuiView.cpp:301:0: style: The function 'doExportListPercent' is never used. [unusedFunction] ^ -sources/gui/GuiView.cpp:287:0: style: The function 'doExportListSelect' 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:44:0: style: The function 'doInit' is never used. [unusedFunction] +sources/view/settings/VDateTime.cpp:59:0: style: The function 'doInit' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:130:0: style: The function 'doInitBluetoothPairedQuery' is never used. [unusedFunction] +sources/device/DeviceView.cpp:136:0: style: The function 'doInitBluetoothPairedQuery' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:105:0: style: The function 'doInitBluetoothPairedReset' is never used. [unusedFunction] +sources/device/DeviceView.cpp:111:0: style: The function 'doInitBluetoothPairedReset' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:33:0: style: The function 'doInitBrightness' is never used. [unusedFunction] +sources/device/DeviceView.cpp:37:0: style: The function 'doInitBrightness' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:67:0: style: The function 'doInitCryptSetup' is never used. [unusedFunction] +sources/device/DeviceView.cpp:71:0: style: The function 'doInitCryptSetup' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:219:0: style: The function 'doInitDecommission' is never used. [unusedFunction] +sources/device/DeviceView.cpp:225:0: style: The function 'doInitDecommission' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:190:0: style: The function 'doInitFactoryReset' is never used. [unusedFunction] +sources/device/DeviceView.cpp:196:0: style: The function 'doInitFactoryReset' is never used. [unusedFunction] ^ -sources/device/DeviceView.cpp:155:0: style: The function 'doInitRootSSHAccess' 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] @@ -624,6 +669,9 @@ 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] ^ @@ -654,16 +702,16 @@ sources/view/hd/adjustment/pretreatment/VPreTreatmentAdjustmentWaterSample.cpp:51:0: style: The function 'doSample' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:367:0: style: The function 'doSetDNS' is never used. [unusedFunction] +sources/view/settings/VNetworkModel.cpp:370:0: style: The function 'doSetDNS' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:349:0: style: The function 'doSetGateway' is never used. [unusedFunction] +sources/view/settings/VNetworkModel.cpp:352:0: style: The function 'doSetGateway' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:340:0: style: The function 'doSetIPAddress' is never used. [unusedFunction] +sources/view/settings/VNetworkModel.cpp:343:0: style: The function 'doSetIPAddress' is never used. [unusedFunction] ^ -sources/view/settings/VNetworkModel.cpp:358:0: style: The function 'doSetSubnetMask' 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] @@ -693,16 +741,25 @@ 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] + +^ +sources/utility/qrcodegen.cpp:377:0: style: The function 'getMask' is never used. [unusedFunction] + +^ +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] ^ unittests/tst_canbus.cpp:35:0: style: The function 'initTestCase_data' is never used. [unusedFunction] ^ -sources/view/hd/alarm/VAlarmStatus.cpp:200:0: style: The function 'instructionKeys' is never used. [unusedFunction] +sources/view/hd/alarm/VAlarmStatus.cpp:205:0: style: The function 'instructionKeys' is never used. [unusedFunction] ^ -sources/view/hd/alarm/VAlarmStatus.cpp:201:0: style: The function 'instructionValues' is never used. [unusedFunction] +sources/view/hd/alarm/VAlarmStatus.cpp:206:0: style: The function 'instructionValues' is never used. [unusedFunction] ^ sources/view/settings/VSettings.cpp:256:0: style: The function 'isPasswordValid' is never used. [unusedFunction] @@ -711,6 +768,9 @@ 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] ^ @@ -732,43 +792,52 @@ unittests/tst_logging.cpp:82:0: style: The function 'logUnknown' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1207:0: style: The function 'mimic' is never used. [unusedFunction] +sources/utility/qrcodegen.cpp:143:0: style: The function 'makeEci' is never used. [unusedFunction] ^ -sources/utility/encryption.cpp:34:0: style: The function 'mkfsExt4' is never used. [unusedFunction] +sources/bluetooth/BluetoothInterface.cpp:1209:0: style: The function 'mimic' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:168:0: style: The function 'moveFolder' 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] + +^ unittests/tst_logging.cpp:149:0: style: The function 'readUnknown' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:209:0: style: The function 'removeFiles' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:211:0: style: The function 'removeFiles' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1287:0: style: The function 'requestBattery' is never used. [unusedFunction] +sources/bluetooth/BluetoothInterface.cpp:1289:0: style: The function 'requestBattery' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1274:0: style: The function 'requestInformation' is never used. [unusedFunction] +sources/bluetooth/BluetoothInterface.cpp:1276:0: style: The function 'requestInformation' is never used. [unusedFunction] ^ -sources/bluetooth/BluetoothInterface.cpp:1255:0: style: The function 'requestMeasurements' is never used. [unusedFunction] +sources/bluetooth/BluetoothInterface.cpp:1257:0: style: The function 'requestMeasurements' is never used. [unusedFunction] ^ sources/view/settings/VBluetooth.cpp:79:0: style: The function 'roleNames' is never used. [unusedFunction] ^ +sources/device/DeviceController.cpp:274:0: style: The function 'sdcardSpaceCheck' is never used. [unusedFunction] + +^ unittests/tst_logging.cpp:135:0: style: The function 'setLogPath_F' is never used. [unusedFunction] ^ unittests/tst_logging.cpp:142:0: style: The function 'setLogPath_T' is never used. [unusedFunction] ^ +sources/device/DeviceController.cpp:375:0: style: The function 'settingsPartitionSpaceCheck' is never used. [unusedFunction] + +^ sources/MainTimer.cpp:137:0: style: The function 'timerEvent' is never used. [unusedFunction] ^ -sources/storage/FileHandler.cpp:301:0: style: The function 'tmpUsable' is never used. [unusedFunction] +sources/storage/FileHandler.cpp:303:0: style: The function 'tmpUsable' is never used. [unusedFunction] ^ unittests/tst_acknow.cpp:62:0: style: The function 'tst_AcknowModel_Init' is never used. [unusedFunction] @@ -1302,22 +1371,31 @@ unittests/tst_utilities.cpp:180:0: style: The function 'tst_fromvariant_Undefined' is never used. [unusedFunction] ^ -unittests/tst_utilities.cpp:238:0: style: The function 'tst_getValue_len' 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:261:0: style: The function 'tst_safeIncrement_GtMaxValue_Step1' 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:254:0: style: The function 'tst_safeIncrement_GtMaxValue_Step10' 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:247:0: style: The function 'tst_safeIncrement_StepZero' 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] @@ -1329,9 +1407,12 @@ unittests/tst_utilities.cpp:204:0: style: The function 'tst_toStringList_RemoveDuplicate' is never used. [unusedFunction] ^ -sources/view/settings/VSettings.cpp:311:0: style: The function 'updateServicePassword' 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] ^