Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
78b6cf6c
Commit
78b6cf6c
authored
Mar 20, 2021
by
Vincent Pinon
Browse files
clang-tidy -fix: modernize-use-bool-literals
parent
a6a125fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/definitions.h
View file @
78b6cf6c
...
...
@@ -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
;
};
...
...
src/timeline2/view/timelinecontroller.cpp
View file @
78b6cf6c
...
...
@@ -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
)
{
...
...
src/titler/graphicsscenerectmove.cpp
View file @
78b6cf6c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment