Skip to content

Commit

Permalink
fixed readability-math-missing-parentheses clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jun 12, 2024
1 parent af6f4bf commit faa23e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/signalhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

// TODO: __USE_DYNAMIC_STACK_SIZE is dependent on the features.h include and not a built-in compiler define, so it might be problematic to depend on it
#ifdef __USE_DYNAMIC_STACK_SIZE
static constexpr size_t MYSTACKSIZE = 16*1024+32768; // wild guess about a reasonable buffer
static constexpr size_t MYSTACKSIZE = (16*1024)+32768; // wild guess about a reasonable buffer
#else
static constexpr size_t MYSTACKSIZE = 16*1024+SIGSTKSZ; // wild guess about a reasonable buffer
#endif
Expand Down
4 changes: 2 additions & 2 deletions gui/codeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ int CodeEditor::lineNumberAreaWidth()
}

#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
const int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
const int space = 3 + (fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits);
#else
const int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
const int space = 3 + (fontMetrics().width(QLatin1Char('9')) * digits);
#endif
return space;
}
Expand Down
2 changes: 1 addition & 1 deletion gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ static int getVersion(const QString& nameWithVersion) {
break;
if (c == ' ') {
if (ret > 0 && dot == 1 && nameWithVersion.endsWith(" dev"))
return ret * 1000000 + v * 1000 + 500;
return (ret * 1000000) + (v * 1000) + 500;
dot = ret = v = 0;
}
else if (c == '.') {
Expand Down

0 comments on commit faa23e6

Please sign in to comment.