Skip to content

Commit

Permalink
BUG: Fix -Wint-in-bool-context in ctkDICOMPatientItemWidget
Browse files Browse the repository at this point in the history
This commit addresses the following warning:

/path/to/CTK/Libs/DICOM/Widgets/ctkDICOMPatientItemWidget.cpp:791:35: warning: enum constant in boolean context [-Wint-in-bool-context]
  791 |       (Qt::ControlModifier || Qt::ShiftModifier))
      |                                   ^~~~~~~~~~~~~
  • Loading branch information
jcfr committed Jan 12, 2024
1 parent a58c149 commit 3ce3c67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libs/DICOM/Widgets/ctkDICOMPatientItemWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,7 @@ void ctkDICOMPatientItemWidget::onSeriesItemClicked()
return;
}

if (QApplication::keyboardModifiers() &&
(Qt::ControlModifier || Qt::ShiftModifier))
if (QApplication::keyboardModifiers() & (Qt::ControlModifier | Qt::ShiftModifier))
{
return;
}
Expand Down

0 comments on commit 3ce3c67

Please sign in to comment.