GUI: fixed cppcheck-warning for comparing unsigned variable with '<= 0'
This commit is contained in:
parent
a39a2479da
commit
446f326225
|
@ -525,7 +525,7 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
result.standards.c = mSettings->value(SETTINGS_STD_C99, false).toBool() ? Standards::C99 : Standards::C89;
|
result.standards.c = mSettings->value(SETTINGS_STD_C99, false).toBool() ? Standards::C99 : Standards::C89;
|
||||||
result.standards.posix = mSettings->value(SETTINGS_STD_POSIX, false).toBool();
|
result.standards.posix = mSettings->value(SETTINGS_STD_POSIX, false).toBool();
|
||||||
|
|
||||||
if (result._jobs <= 0) {
|
if (result._jobs <= 1) {
|
||||||
result._jobs = 1;
|
result._jobs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue