Commit 78b6cf6c authored by Vincent Pinon's avatar Vincent Pinon
Browse files

clang-tidy -fix: modernize-use-bool-literals

parent a6a125fd
......@@ -227,7 +227,7 @@ public:
/** the track on which the transition is applied (a_track)*/
int a_track{0};
/** Does the user request for a special a_track */
bool forceTrack{0};
bool forceTrack{false};
TransitionInfo() = default;
};
......
......@@ -2766,7 +2766,7 @@ void TimelineController::switchTrackLock(bool applyToAll)
toBeLockedCount++;
}
}
bool leaveOneUnlocked = toBeLockedCount == m_model->getTracksCount() + hasSubtitleTrack ? 1 : 0;
bool leaveOneUnlocked = toBeLockedCount == m_model->getTracksCount() + hasSubtitleTrack ? true : false;
for (const int id : ids) {
// leave active track unlocked
if (leaveOneUnlocked && id == m_activeTrack) {
......
......@@ -76,7 +76,7 @@ MyTextItem::MyTextItem(const QString &txt, QGraphicsItem *parent)
setGraphicsEffect(m_shadowEffect);
updateGeometry();
connect(document(), SIGNAL(contentsChange(int,int,int)), this, SLOT(updateGeometry(int,int,int)));
updateTW(0, 2, 1, 0, 0);
updateTW(false, 2, 1, 0, 0);
}
Qt::Alignment MyTextItem::alignment() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment