mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Fix cppcheck warnings and cleanup suppression config
- redundantAssignment - knownConditionTrueFalse
This commit is contained in:
committed by
Klaus Basan
parent
000bdee457
commit
3774f2b60f
@@ -237,9 +237,10 @@ namespace BlackGui
|
||||
const int all = models.size();
|
||||
|
||||
// maximum
|
||||
int max = CDbStashComponent::MaxModelPublished;
|
||||
const QString maxStr(ui->le_MaxModelsStashed->text());
|
||||
bool okMaxStr = true;
|
||||
int max = maxStr.isEmpty() ? CDbStashComponent::MaxModelPublished : maxStr.toInt(&okMaxStr);
|
||||
if (!maxStr.isEmpty()) { max = maxStr.toInt(&okMaxStr); }
|
||||
if (!okMaxStr || max > all) { max = all; }
|
||||
|
||||
// override description
|
||||
|
||||
Reference in New Issue
Block a user