diff options
author | marxin <mliska@suse.cz> | 2019-03-02 13:32:29 +0100 |
---|---|---|
committer | marxin <mliska@suse.cz> | 2019-03-02 14:37:02 +0100 |
commit | 6be77da7eb817fc1f8469bd0bdd8a0d08167e701 (patch) | |
tree | b2336f6475e60652d110138ae36307aff6e9205e /servers | |
parent | a42549b8f703754a43bad2557357cb7046874118 (diff) |
Fix new GCC 9 warnings: -Wdeprecated-copy.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/physics_2d_server.h | 6 | ||||
-rw-r--r-- | servers/physics_server.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/servers/physics_2d_server.h b/servers/physics_2d_server.h index 1de9c7df93..0ba8a6605d 100644 --- a/servers/physics_2d_server.h +++ b/servers/physics_2d_server.h @@ -653,6 +653,12 @@ class Physics2DServerManager { ClassInfo(const ClassInfo &p_ci) : name(p_ci.name), create_callback(p_ci.create_callback) {} + + ClassInfo operator=(const ClassInfo &p_ci) { + name = p_ci.name; + create_callback = p_ci.create_callback; + return *this; + } }; static Vector<ClassInfo> physics_2d_servers; diff --git a/servers/physics_server.h b/servers/physics_server.h index c71bb01943..9895ef2455 100644 --- a/servers/physics_server.h +++ b/servers/physics_server.h @@ -794,6 +794,12 @@ class PhysicsServerManager { ClassInfo(const ClassInfo &p_ci) : name(p_ci.name), create_callback(p_ci.create_callback) {} + + ClassInfo operator=(const ClassInfo &p_ci) { + name = p_ci.name; + create_callback = p_ci.create_callback; + return *this; + } }; static Vector<ClassInfo> physics_servers; |