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
4279e53a
Commit
4279e53a
authored
Mar 20, 2021
by
Vincent Pinon
Browse files
clang-tidy -fix: modernize-loop-convert
parent
11559bb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
4279e53a
...
...
@@ -1590,8 +1590,7 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim
audioOffsetCalculated
=
true
;
}
for
(
int
i
=
0
;
i
<
singleAudioTracks
.
size
();
i
++
)
{
int
oldPos
=
singleAudioTracks
.
at
(
i
);
for
(
int
oldPos
:
singleAudioTracks
)
{
if
(
tracksMap
.
contains
(
oldPos
))
{
continue
;
}
...
...
src/timeline2/model/trackmodel.cpp
View file @
4279e53a
...
...
@@ -1051,10 +1051,10 @@ bool TrackModel::checkConsistency()
// Check that the mix has correct in/out
int
mainId
=
-
1
;
int
mixIn
=
t
.
get_in
();
for
(
auto
it
=
m_sameComposition
s
.
begin
();
it
!=
m_sameCompositions
.
end
();
++
it
)
{
if
(
static_cast
<
Mlt
::
Transition
*>
(
it
->
second
->
getAsset
())
->
get_in
()
==
mixIn
)
{
for
(
auto
&
m_sameComposition
:
m_sameCompositions
)
{
if
(
static_cast
<
Mlt
::
Transition
*>
(
m_sameComposition
.
second
->
getAsset
())
->
get_in
()
==
mixIn
)
{
// Found mix in list
mainId
=
it
->
first
;
mainId
=
m_sameComposition
.
first
;
break
;
}
}
...
...
@@ -1106,9 +1106,9 @@ std::pair<int, int> TrackModel::getClipIndexAt(int position, int playlist)
bool
TrackModel
::
isLastClip
(
int
position
)
{
READ_LOCK
();
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
if
(
!
m_playlist
s
[
j
]
.
is_blank_at
(
position
))
{
return
m_playlist
s
[
j
]
.
get_clip_index_at
(
position
)
==
m_playlist
s
[
j
]
.
count
()
-
1
;
for
(
auto
&
m_playlist
:
m_playlists
)
{
if
(
!
m_playlist
.
is_blank_at
(
position
))
{
return
m_playlist
.
get_clip_index_at
(
position
)
==
m_playlist
.
count
()
-
1
;
}
}
return
false
;
...
...
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