diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-30 09:37:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-30 09:42:19 +0300 |
commit | 501d2443d03cce18985fab3ffad5d23238748f3e (patch) | |
tree | 1d127d4e4c6d82fc85feedc9826dd5619174e346 /source/blender/sequencer/intern | |
parent | df9597cfba78deb40009553ab9dcf09c21edd434 (diff) |
Cleanup: use const arguments for accessor functions
Diffstat (limited to 'source/blender/sequencer/intern')
-rw-r--r-- | source/blender/sequencer/intern/iterator.c | 2 | ||||
-rw-r--r-- | source/blender/sequencer/intern/prefetch.c | 4 | ||||
-rw-r--r-- | source/blender/sequencer/intern/sequence_lookup.c | 2 | ||||
-rw-r--r-- | source/blender/sequencer/intern/utils.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/sequencer/intern/iterator.c b/source/blender/sequencer/intern/iterator.c index dd343776200..0754d9b38ed 100644 --- a/source/blender/sequencer/intern/iterator.c +++ b/source/blender/sequencer/intern/iterator.c @@ -117,7 +117,7 @@ SeqCollection *SEQ_collection_create(void) /** * Return number of items in collection. */ -uint SEQ_collection_len(SeqCollection *collection) +uint SEQ_collection_len(const SeqCollection *collection) { return BLI_gset_len(collection->set); } diff --git a/source/blender/sequencer/intern/prefetch.c b/source/blender/sequencer/intern/prefetch.c index b7dabda4a34..15609a76f5c 100644 --- a/source/blender/sequencer/intern/prefetch.c +++ b/source/blender/sequencer/intern/prefetch.c @@ -91,7 +91,7 @@ typedef struct PrefetchJob { bool stop; } PrefetchJob; -static bool seq_prefetch_is_playing(Main *bmain) +static bool seq_prefetch_is_playing(const Main *bmain) { for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { if (screen->animtimer) { @@ -101,7 +101,7 @@ static bool seq_prefetch_is_playing(Main *bmain) return false; } -static bool seq_prefetch_is_scrubbing(Main *bmain) +static bool seq_prefetch_is_scrubbing(const Main *bmain) { for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { diff --git a/source/blender/sequencer/intern/sequence_lookup.c b/source/blender/sequencer/intern/sequence_lookup.c index 72567dc394e..25b42957d99 100644 --- a/source/blender/sequencer/intern/sequence_lookup.c +++ b/source/blender/sequencer/intern/sequence_lookup.c @@ -87,7 +87,7 @@ static void seq_sequence_lookup_rebuild(const struct Scene *scene, struct Sequen seq_sequence_lookup_build(scene, *lookup); } -static bool seq_sequence_lookup_is_valid(struct SequenceLookup *lookup) +static bool seq_sequence_lookup_is_valid(const struct SequenceLookup *lookup) { return (lookup->tag & SEQ_LOOKUP_TAG_INVALID) == 0; } diff --git a/source/blender/sequencer/intern/utils.c b/source/blender/sequencer/intern/utils.c index a287466dfb2..98640ea8a5c 100644 --- a/source/blender/sequencer/intern/utils.c +++ b/source/blender/sequencer/intern/utils.c @@ -530,7 +530,7 @@ void SEQ_alpha_mode_from_file_extension(Sequence *seq) /* called on draw, needs to be fast, * we could cache and use a flag if we want to make checks for file paths resolving for eg. */ -bool SEQ_sequence_has_source(Sequence *seq) +bool SEQ_sequence_has_source(const Sequence *seq) { switch (seq->type) { case SEQ_TYPE_MASK: |