diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-04 13:00:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 13:00:17 +0200 |
commit | 696849f73a9bebc95cecf25256ae7011c912dae3 (patch) | |
tree | 6bd8d8cb872a4600804c31ec281f734cd5f46a77 /scene/3d/soft_body_3d.h | |
parent | 6a03aed5a4c6dcc2b645b90ce15ba33bf17819d2 (diff) | |
parent | ce263c4ff680f28594ffc1886a4f418c50c41ef7 (diff) |
Merge pull request #41761 from madmiraal/fix-assignment-operators
Ensure assignment operators return by reference to avoid unnecessary copies.
Diffstat (limited to 'scene/3d/soft_body_3d.h')
-rw-r--r-- | scene/3d/soft_body_3d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/soft_body_3d.h b/scene/3d/soft_body_3d.h index 85cfb81637..c59a0b3aa3 100644 --- a/scene/3d/soft_body_3d.h +++ b/scene/3d/soft_body_3d.h @@ -74,7 +74,7 @@ public: PinnedPoint(); PinnedPoint(const PinnedPoint &obj_tocopy); - PinnedPoint operator=(const PinnedPoint &obj); + PinnedPoint &operator=(const PinnedPoint &obj); }; private: |