diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
commit | 467a5c03ccb5ea2d1977bd84adcab69eefb4e051 (patch) | |
tree | a43709e19c87776f2db42304b6bd7f0c13721361 /src/net/serverinfo.h | |
parent | 9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2 (diff) | |
download | manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.gz manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.bz2 manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.xz manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.zip |
Add missing operator= in classes with copy constructors.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index 45f042b0e..7df9e0066 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -89,6 +89,24 @@ class ServerInfo final version.second = info.version.second; } + void operator=(const ServerInfo &info) + { + type = info.type; + name = info.name; + hostname = info.hostname; + althostname = info.althostname; + description = info.description; + registerUrl = info.registerUrl; + onlineListUrl = info.onlineListUrl; + supportUrl = info.supportUrl; + updateMirrors = info.updateMirrors; + port = info.port; + save = info.save; + persistentIp = info.persistentIp; + version.first = info.version.first; + version.second = info.version.second; + } + bool isValid() const A_WARN_UNUSED { return !(hostname.empty() |