Fixed variable names and comments

thanks to Frank Dana
This commit is contained in:
Brenno
2021-04-12 21:18:21 -03:00
parent d1d9293870
commit 99b5d1e7ab
4 changed files with 9 additions and 11 deletions

View File

@@ -438,19 +438,19 @@ openshot::EffectBase* Timeline::GetClipEffect(const std::string& id)
std::list<openshot::EffectBase*> Timeline::ClipEffects() const {
// Initialize the list
std::list<EffectBase*> ClipEffects;
std::list<EffectBase*> timelineEffectsList;
// Loop through all clips
for (const auto& clip : clips) {
// Get the clip's list of effects
std::list<EffectBase*> clipEffects = clip->Effects();
std::list<EffectBase*> clipEffectsList = clip->Effects();
// Append the clip's effects to the list
ClipEffects.insert(ClipEffects.end(), clipEffects.begin(), clipEffects.end());
timelineEffectsList.insert(timelineEffectsList.end(), clipEffectsList.begin(), clipEffectsList.end());
}
return ClipEffects;
return timelineEffectsList;
}
// Compute the end time of the latest timeline element