Skip to content

Commit

Permalink
fix clang tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Friedel committed Nov 21, 2023
1 parent 8a2a93d commit 6190334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tools/fm-editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ add_custom_target(

file(
WRITE "${CMAKE_CURRENT_BINARY_DIR}/fm-editor_autogen/.clang-tidy"
"
Checks: '-*,llvm-twine-local'
"Checks: '-*,llvm-twine-local'
...
"
)
6 changes: 3 additions & 3 deletions tools/fm-editor/graph/FeatureNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ void FeatureNode::contextMenuEvent(QGraphicsSceneContextMenuEvent *Event) {
void FeatureNode::inspect() { emit(inspectSource(Feature)); }

int FeatureNode::width() const {
const QFontMetrics fm((QFont()));
const QFontMetrics Fm((QFont()));

return fm.boundingRect(getQName()).width();
return Fm.boundingRect(getQName()).width();
}

int FeatureNode::childrenWidth() const {
if (ChildEdges.empty()) {
return width() + 1.5 * widthAdjust;
return width() + int(1.5 * widthAdjust);
}

int Result = 0;
Expand Down

0 comments on commit 6190334

Please sign in to comment.