summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-03-02 13:32:29 +0100
committermarxin <mliska@suse.cz>2019-03-02 14:37:02 +0100
commit6be77da7eb817fc1f8469bd0bdd8a0d08167e701 (patch)
treeb2336f6475e60652d110138ae36307aff6e9205e /servers
parenta42549b8f703754a43bad2557357cb7046874118 (diff)
Fix new GCC 9 warnings: -Wdeprecated-copy.
Diffstat (limited to 'servers')
-rw-r--r--servers/physics_2d_server.h6
-rw-r--r--servers/physics_server.h6
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;