diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-28 11:52:08 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-02 21:45:54 +0200 |
commit | 0261eb73e5588f5732aef5df753311d488c45d06 (patch) | |
tree | d641b0cad81ea58b8d8680b002197a4f592ef4a9 /src/net | |
parent | 23ccc8080a5283adce9f06909fc89b63d0e25452 (diff) | |
download | manaserv-0261eb73e5588f5732aef5df753311d488c45d06.tar.gz manaserv-0261eb73e5588f5732aef5df753311d488c45d06.tar.bz2 manaserv-0261eb73e5588f5732aef5df753311d488c45d06.tar.xz manaserv-0261eb73e5588f5732aef5df753311d488c45d06.zip |
Fixed a bunch of cppcheck warnings
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/netcomputer.cpp | 2 | ||||
-rw-r--r-- | src/net/netcomputer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp index 8834f4a6..5d86f13a 100644 --- a/src/net/netcomputer.cpp +++ b/src/net/netcomputer.cpp @@ -34,7 +34,7 @@ NetComputer::NetComputer(ENetPeer *peer): { } -bool NetComputer::isConnected() +bool NetComputer::isConnected() const { return (mPeer->state == ENET_PEER_STATE_CONNECTED); } diff --git a/src/net/netcomputer.h b/src/net/netcomputer.h index 09840348..228b30ea 100644 --- a/src/net/netcomputer.h +++ b/src/net/netcomputer.h @@ -40,7 +40,7 @@ class NetComputer /** * Returns <code>true</code> if this computer is connected. */ - bool isConnected(); + bool isConnected() const; /** * Disconnects the computer from the server, after sending a message. |