Fix cppcheck const parameters
Convert method signature parameters to const where it is possible # Conflicts: # drivers/gles3/rasterizer_canvas_gles3.cpp # drivers/gles3/rasterizer_canvas_gles3.h # editor/plugins/animation_state_machine_editor.cpp # editor/plugins/animation_state_machine_editor.h
This commit is contained in:
@@ -157,7 +157,7 @@ void Gradient::reverse() {
|
||||
emit_signal(CoreStringNames::get_singleton()->changed);
|
||||
}
|
||||
|
||||
void Gradient::set_points(Vector<Gradient::Point> &p_points) {
|
||||
void Gradient::set_points(const Vector<Gradient::Point> &p_points) {
|
||||
points = p_points;
|
||||
is_sorted = false;
|
||||
emit_signal(CoreStringNames::get_singleton()->changed);
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
|
||||
void add_point(float p_offset, const Color &p_color);
|
||||
void remove_point(int p_index);
|
||||
void set_points(Vector<Point> &p_points);
|
||||
void set_points(const Vector<Point> &p_points);
|
||||
Vector<Point> &get_points();
|
||||
void reverse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user