Cleanup: Clang-Tidy warnings

This commit is contained in:
Sergey Sharybin 2020-11-06 09:53:18 +01:00
parent 9c34391e0c
commit 0573f86587
2 changed files with 5 additions and 6 deletions

View File

@ -742,9 +742,8 @@ static float seq_cache_timeline_frame_to_frame_index(Sequence *seq, float timeli
if (type == SEQ_CACHE_STORE_RAW) {
return seq_give_stripelem_index(seq, timeline_frame);
}
else {
return timeline_frame - seq->start;
}
return timeline_frame - seq->start;
}
static float seq_cache_frame_index_to_timeline_frame(Sequence *seq, float frame_index)

View File

@ -56,12 +56,12 @@ void BKE_sequencer_base_clipboard_pointers_free(struct ListBase *seqbase);
struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context,
struct Sequence *seq,
float cfra,
float timeline_frame,
int type,
bool skip_disk_cache);
void BKE_sequencer_cache_put(const SeqRenderData *context,
struct Sequence *seq,
float cfra,
float timeline_frame,
int type,
struct ImBuf *i,
float cost,
@ -74,7 +74,7 @@ bool BKE_sequencer_cache_put_if_possible(const SeqRenderData *context,
float cost,
bool skip_disk_cache);
bool BKE_sequencer_cache_recycle_item(struct Scene *scene);
void BKE_sequencer_cache_free_temp_cache(struct Scene *scene, short id, int cfra);
void BKE_sequencer_cache_free_temp_cache(struct Scene *scene, short id, int timeline_frame);
void BKE_sequencer_cache_destruct(struct Scene *scene);
void BKE_sequencer_cache_cleanup_all(struct Main *bmain);
void BKE_sequencer_cache_cleanup_sequence(struct Scene *scene,