You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #30455 from qarmin/const_reference
Pass by reference to const
This commit is contained in:
@@ -766,7 +766,7 @@ bool CurvePreviewGenerator::handles(const String &p_type) const {
|
||||
return p_type == "Curve";
|
||||
}
|
||||
|
||||
Ref<Texture> CurvePreviewGenerator::generate(const Ref<Resource> &p_from, const Size2 p_size) const {
|
||||
Ref<Texture> CurvePreviewGenerator::generate(const Ref<Resource> &p_from, const Size2 &p_size) const {
|
||||
|
||||
Ref<Curve> curve_ref = p_from;
|
||||
ERR_FAIL_COND_V(curve_ref.is_null(), Ref<Texture>());
|
||||
|
||||
Reference in New Issue
Block a user