Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/sequencer
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/sequencer')
-rw-r--r--source/blender/sequencer/SEQ_add.h8
-rw-r--r--source/blender/sequencer/SEQ_edit.h8
-rw-r--r--source/blender/sequencer/SEQ_effects.h8
-rw-r--r--source/blender/sequencer/SEQ_iterator.h4
-rw-r--r--source/blender/sequencer/SEQ_sequencer.h6
-rw-r--r--source/blender/sequencer/SEQ_time.h10
-rw-r--r--source/blender/sequencer/SEQ_transform.h6
-rw-r--r--source/blender/sequencer/SEQ_utils.h10
-rw-r--r--source/blender/sequencer/intern/multiview.h6
-rw-r--r--source/blender/sequencer/intern/proxy.h2
-rw-r--r--source/blender/sequencer/intern/sequencer.h4
-rw-r--r--source/blender/sequencer/intern/strip_time.h2
12 files changed, 37 insertions, 37 deletions
diff --git a/source/blender/sequencer/SEQ_add.h b/source/blender/sequencer/SEQ_add.h
index 936868725b4..85f44ab914f 100644
--- a/source/blender/sequencer/SEQ_add.h
+++ b/source/blender/sequencer/SEQ_add.h
@@ -79,8 +79,8 @@ typedef struct SeqLoadData {
void SEQ_add_load_data_init(struct SeqLoadData *load_data,
const char *name,
const char *path,
- const int start_frame,
- const int channel);
+ int start_frame,
+ int channel);
/**
* Add image strip.
* \note Use #SEQ_add_image_set_directory() and #SEQ_add_image_load_file() to load image sequences
@@ -109,7 +109,7 @@ struct Sequence *SEQ_add_sound_strip(struct Main *bmain,
struct Scene *scene,
struct ListBase *seqbase,
struct SeqLoadData *load_data,
- const double audio_offset);
+ double audio_offset);
/**
* Add meta strip.
*
@@ -206,7 +206,7 @@ void SEQ_add_image_init_alpha_mode(struct Sequence *seq);
void SEQ_add_reload_new_file(struct Main *bmain,
struct Scene *scene,
struct Sequence *seq,
- const bool lock_range);
+ bool lock_range);
void SEQ_add_movie_reload_if_needed(struct Main *bmain,
struct Scene *scene,
struct Sequence *seq,
diff --git a/source/blender/sequencer/SEQ_edit.h b/source/blender/sequencer/SEQ_edit.h
index fe12ac253b9..73723c23920 100644
--- a/source/blender/sequencer/SEQ_edit.h
+++ b/source/blender/sequencer/SEQ_edit.h
@@ -90,8 +90,8 @@ struct Sequence *SEQ_edit_strip_split(struct Main *bmain,
struct Scene *scene,
struct ListBase *seqbase,
struct Sequence *seq,
- const int timeline_frame,
- const eSeqSplitMethod method,
+ int timeline_frame,
+ eSeqSplitMethod method,
const char **r_error);
/**
* Find gap after initial_frame and move strips on right side to close the gap
@@ -104,8 +104,8 @@ struct Sequence *SEQ_edit_strip_split(struct Main *bmain,
*/
bool SEQ_edit_remove_gaps(struct Scene *scene,
struct ListBase *seqbase,
- const int initial_frame,
- const bool remove_all_gaps);
+ int initial_frame,
+ bool remove_all_gaps);
void SEQ_edit_sequence_name_set(struct Scene *scene, struct Sequence *seq, const char *new_name);
#ifdef __cplusplus
diff --git a/source/blender/sequencer/SEQ_effects.h b/source/blender/sequencer/SEQ_effects.h
index 87a8288a593..8a79abde7bc 100644
--- a/source/blender/sequencer/SEQ_effects.h
+++ b/source/blender/sequencer/SEQ_effects.h
@@ -59,10 +59,10 @@ struct SeqEffectHandle {
void (*load)(struct Sequence *seqconst);
/* duplicate */
- void (*copy)(struct Sequence *dst, struct Sequence *src, const int flag);
+ void (*copy)(struct Sequence *dst, struct Sequence *src, int flag);
/* destruct */
- void (*free)(struct Sequence *seq, const bool do_id_user);
+ void (*free)(struct Sequence *seq, bool do_id_user);
/* returns: -1: no input needed,
* 0: no early out,
@@ -105,8 +105,8 @@ struct SeqEffectHandle {
struct SeqEffectHandle SEQ_effect_handle_get(struct Sequence *seq);
int SEQ_effect_get_num_inputs(int seq_type);
-void SEQ_effect_text_font_unload(struct TextVars *data, const bool do_id_user);
-void SEQ_effect_text_font_load(struct TextVars *data, const bool do_id_user);
+void SEQ_effect_text_font_unload(struct TextVars *data, bool do_id_user);
+void SEQ_effect_text_font_load(struct TextVars *data, bool do_id_user);
#ifdef __cplusplus
}
diff --git a/source/blender/sequencer/SEQ_iterator.h b/source/blender/sequencer/SEQ_iterator.h
index 2826e6b75cb..c26886c2e6c 100644
--- a/source/blender/sequencer/SEQ_iterator.h
+++ b/source/blender/sequencer/SEQ_iterator.h
@@ -225,8 +225,8 @@ SeqCollection *SEQ_query_all_strips_recursive(ListBase *seqbase);
* \return strip collection
*/
SeqCollection *SEQ_query_rendered_strips(ListBase *seqbase,
- const int timeline_frame,
- const int displayed_channel);
+ int timeline_frame,
+ int displayed_channel);
/**
* Query all effect strips that are directly or indirectly connected to seq_reference.
* This includes all effects of seq_reference, strips used by another inputs and their effects, so
diff --git a/source/blender/sequencer/SEQ_sequencer.h b/source/blender/sequencer/SEQ_sequencer.h
index a3ee716c3f6..1229f6f7bea 100644
--- a/source/blender/sequencer/SEQ_sequencer.h
+++ b/source/blender/sequencer/SEQ_sequencer.h
@@ -68,7 +68,7 @@ int SEQ_tool_settings_pivot_point_get(struct Scene *scene);
struct SequencerToolSettings *SEQ_tool_settings_copy(struct SequencerToolSettings *tool_settings);
struct Editing *SEQ_editing_get(const struct Scene *scene);
struct Editing *SEQ_editing_ensure(struct Scene *scene);
-void SEQ_editing_free(struct Scene *scene, const bool do_id_user);
+void SEQ_editing_free(struct Scene *scene, bool do_id_user);
/**
* Get seqbase that is being viewed currently. This can be main seqbase or meta strip seqbase
*
@@ -84,7 +84,7 @@ struct ListBase *SEQ_active_seqbase_get(const struct Editing *ed);
*/
void SEQ_seqbase_active_set(struct Editing *ed, struct ListBase *seqbase);
struct Sequence *SEQ_sequence_alloc(ListBase *lb, int timeline_frame, int machine, int type);
-void SEQ_sequence_free(struct Scene *scene, struct Sequence *seq, const bool do_clean_animdata);
+void SEQ_sequence_free(struct Scene *scene, struct Sequence *seq, bool do_clean_animdata);
/**
* Create and initialize #MetaStack, append it to `ed->metastack` ListBase
*
@@ -119,7 +119,7 @@ void SEQ_sequence_base_dupli_recursive(const struct Scene *scene_src,
struct ListBase *nseqbase,
const struct ListBase *seqbase,
int dupe_flag,
- const int flag);
+ int flag);
bool SEQ_valid_strip_channel(struct Sequence *seq);
/**
diff --git a/source/blender/sequencer/SEQ_time.h b/source/blender/sequencer/SEQ_time.h
index e563e94da24..f08220e4958 100644
--- a/source/blender/sequencer/SEQ_time.h
+++ b/source/blender/sequencer/SEQ_time.h
@@ -59,10 +59,10 @@ void SEQ_timeline_boundbox(const struct Scene *scene,
float SEQ_time_sequence_get_fps(struct Scene *scene, struct Sequence *seq);
int SEQ_time_find_next_prev_edit(struct Scene *scene,
int timeline_frame,
- const short side,
- const bool do_skip_mute,
- const bool do_center,
- const bool do_unselected);
+ short side,
+ bool do_skip_mute,
+ bool do_center,
+ bool do_unselected);
void SEQ_time_update_sequence(struct Scene *scene, struct ListBase *seqbase, struct Sequence *seq);
void SEQ_time_update_recursive(struct Scene *scene, struct Sequence *changed_seq);
/**
@@ -74,7 +74,7 @@ void SEQ_time_update_recursive(struct Scene *scene, struct Sequence *changed_seq
* \param timeline_frame: absolute frame position
* \return true if strip intersects with timeline frame.
*/
-bool SEQ_time_strip_intersects_frame(const struct Sequence *seq, const int timeline_frame);
+bool SEQ_time_strip_intersects_frame(const struct Sequence *seq, int timeline_frame);
void SEQ_time_update_meta_strip_range(struct Scene *scene, struct Sequence *seq_meta);
#ifdef __cplusplus
diff --git a/source/blender/sequencer/SEQ_transform.h b/source/blender/sequencer/SEQ_transform.h
index fe0c223bcb1..00d1f1c9955 100644
--- a/source/blender/sequencer/SEQ_transform.h
+++ b/source/blender/sequencer/SEQ_transform.h
@@ -65,7 +65,7 @@ bool SEQ_transform_seqbase_shuffle_time(struct SeqCollection *strips_to_shuffle,
struct ListBase *seqbasep,
struct Scene *evil_scene,
struct ListBase *markers,
- const bool use_sync_markers);
+ bool use_sync_markers);
/**
* Check if the selected seq's reference unselected seq's.
*/
@@ -80,8 +80,8 @@ bool SEQ_transform_seqbase_isolated_sel_check(struct ListBase *seqbase);
*/
void SEQ_transform_offset_after_frame(struct Scene *scene,
struct ListBase *seqbase,
- const int delta,
- const int timeline_frame);
+ int delta,
+ int timeline_frame);
/* Image transformation. */
diff --git a/source/blender/sequencer/SEQ_utils.h b/source/blender/sequencer/SEQ_utils.h
index 58d7a92f370..a209857d1f9 100644
--- a/source/blender/sequencer/SEQ_utils.h
+++ b/source/blender/sequencer/SEQ_utils.h
@@ -66,11 +66,11 @@ struct Mask *SEQ_active_mask_get(struct Scene *scene);
void SEQ_alpha_mode_from_file_extension(struct Sequence *seq);
bool SEQ_sequence_has_source(const struct Sequence *seq);
void SEQ_set_scale_to_fit(const struct Sequence *seq,
- const int image_width,
- const int image_height,
- const int preview_width,
- const int preview_height,
- const eSeqImageFitMethod fit_method);
+ int image_width,
+ int image_height,
+ int preview_width,
+ int preview_height,
+ eSeqImageFitMethod fit_method);
/**
* Ensure, that provided Sequence has unique name. If animation data exists for this Sequence, it
* will be duplicated and mapped onto new name
diff --git a/source/blender/sequencer/intern/multiview.h b/source/blender/sequencer/intern/multiview.h
index 3d528c22fff..79d99c88b50 100644
--- a/source/blender/sequencer/intern/multiview.h
+++ b/source/blender/sequencer/intern/multiview.h
@@ -36,9 +36,9 @@ struct Scene;
* **********************************************************************
*/
-void seq_anim_add_suffix(struct Scene *scene, struct anim *anim, const int view_id);
+void seq_anim_add_suffix(struct Scene *scene, struct anim *anim, int view_id);
void seq_multiview_name(struct Scene *scene,
- const int view_id,
+ int view_id,
const char *prefix,
const char *ext,
char *r_path,
@@ -46,7 +46,7 @@ void seq_multiview_name(struct Scene *scene,
/**
* The number of files will vary according to the stereo format.
*/
-int seq_num_files(struct Scene *scene, char views_format, const bool is_multiview);
+int seq_num_files(struct Scene *scene, char views_format, bool is_multiview);
#ifdef __cplusplus
}
diff --git a/source/blender/sequencer/intern/proxy.h b/source/blender/sequencer/intern/proxy.h
index a65fdcd42fe..e92cd8de429 100644
--- a/source/blender/sequencer/intern/proxy.h
+++ b/source/blender/sequencer/intern/proxy.h
@@ -36,7 +36,7 @@ struct anim;
struct ImBuf *seq_proxy_fetch(const struct SeqRenderData *context,
struct Sequence *seq,
int timeline_frame);
-bool seq_proxy_get_custom_file_fname(struct Sequence *seq, char *name, const int view_id);
+bool seq_proxy_get_custom_file_fname(struct Sequence *seq, char *name, int view_id);
void free_proxy_seq(Sequence *seq);
void seq_proxy_index_dir_set(struct anim *anim, const char *base_dir);
diff --git a/source/blender/sequencer/intern/sequencer.h b/source/blender/sequencer/intern/sequencer.h
index f8ad17e9032..aff81255d7d 100644
--- a/source/blender/sequencer/intern/sequencer.h
+++ b/source/blender/sequencer/intern/sequencer.h
@@ -36,8 +36,8 @@ struct Sequence;
*/
void seq_free_sequence_recurse(struct Scene *scene,
struct Sequence *seq,
- const bool do_id_user,
- const bool do_clean_animdata);
+ bool do_id_user,
+ bool do_clean_animdata);
#ifdef __cplusplus
}
diff --git a/source/blender/sequencer/intern/strip_time.h b/source/blender/sequencer/intern/strip_time.h
index aa807b6da25..4fe8d03e641 100644
--- a/source/blender/sequencer/intern/strip_time.h
+++ b/source/blender/sequencer/intern/strip_time.h
@@ -51,7 +51,7 @@ typedef struct GapInfo {
*/
void seq_time_gap_info_get(const struct Scene *scene,
struct ListBase *seqbase,
- const int initial_frame,
+ int initial_frame,
struct GapInfo *r_gap_info);
#ifdef __cplusplus