mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
Fix warning: NULL used in arithmetic
This commit is contained in:
parent
bce22a35f0
commit
3551b19942
1 changed files with 2 additions and 2 deletions
|
@ -1545,9 +1545,9 @@ void DomainServer::sendHeartbeatToMetaverse(const QString& networkAddress, const
|
||||||
|
|
||||||
static const QString PORT_SETTINGS_KEY = "domain_server." + PUBLIC_SOCKET_PORT_KEY;
|
static const QString PORT_SETTINGS_KEY = "domain_server." + PUBLIC_SOCKET_PORT_KEY;
|
||||||
const int portFromSettings = _settingsManager.valueForKeyPath(PORT_SETTINGS_KEY).toInt();
|
const int portFromSettings = _settingsManager.valueForKeyPath(PORT_SETTINGS_KEY).toInt();
|
||||||
if (port != NULL) {
|
if (port != 0) {
|
||||||
domainObject[PUBLIC_SOCKET_PORT_KEY] = port;
|
domainObject[PUBLIC_SOCKET_PORT_KEY] = port;
|
||||||
} else if (portFromSettings != NULL) {
|
} else if (portFromSettings != 0) {
|
||||||
domainObject[PUBLIC_SOCKET_PORT_KEY] = portFromSettings;
|
domainObject[PUBLIC_SOCKET_PORT_KEY] = portFromSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue