diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:39:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:39:17 +0300 |
commit | ab9405f511303d490a8f966d1c1abe7f94bf0633 (patch) | |
tree | 2be8b455633f6aa960c40e09f602637c7242c261 /src/net/ea | |
parent | 73fac88b0263962c90d2d649938e6a4a5b11a246 (diff) | |
download | mv-ab9405f511303d490a8f966d1c1abe7f94bf0633.tar.gz mv-ab9405f511303d490a8f966d1c1abe7f94bf0633.tar.bz2 mv-ab9405f511303d490a8f966d1c1abe7f94bf0633.tar.xz mv-ab9405f511303d490a8f966d1c1abe7f94bf0633.zip |
fix style in net directory.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/chathandler.cpp | 1 | ||||
-rw-r--r-- | src/net/ea/gamehandler.cpp | 1 | ||||
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/ea/itemhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/ea/itemhandler.h | 2 | ||||
-rw-r--r-- | src/net/ea/loginhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/ea/network.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/network.h | 2 | ||||
-rw-r--r-- | src/net/ea/npchandler.cpp | 1 |
9 files changed, 20 insertions, 3 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 872878511..a84ab21e0 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -43,6 +43,7 @@ namespace Ea { ChatHandler::ChatHandler() : + mSentWhispers(), mShowAllLang(serverConfig.getValue("showAllLang", 0)) { } diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index 0e159bd76..faee4b2d8 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -35,6 +35,7 @@ namespace Ea { GameHandler::GameHandler() : + mMap(), mCharID(0) { } diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 21087d355..086a05102 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -74,9 +74,12 @@ namespace Ea { InventoryHandler::InventoryHandler() : + mEquips(), + mInventoryItems(), mStorage(nullptr), mStorageWindow(nullptr), - mDebugInventory(true) + mDebugInventory(true), + mSentPickups() { } diff --git a/src/net/ea/itemhandler.cpp b/src/net/ea/itemhandler.cpp index 6c7124e30..aafe6fc4b 100644 --- a/src/net/ea/itemhandler.cpp +++ b/src/net/ea/itemhandler.cpp @@ -33,6 +33,10 @@ ItemHandler::ItemHandler() { } +ItemHandler::~ItemHandler() +{ +} + void ItemHandler::processItemVisible(Net::MessageIn &msg) { const int id = msg.readInt32(); diff --git a/src/net/ea/itemhandler.h b/src/net/ea/itemhandler.h index cd56f2d12..72f64bfb8 100644 --- a/src/net/ea/itemhandler.h +++ b/src/net/ea/itemhandler.h @@ -36,6 +36,8 @@ class ItemHandler A_DELETE_COPY(ItemHandler) + virtual ~ItemHandler(); + void processItemVisible(Net::MessageIn &msg); void processItemRemove(Net::MessageIn &msg); diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index f94771eec..c50f76cdd 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -40,7 +40,10 @@ namespace Ea LoginHandler::LoginHandler() : Net::LoginHandler(), mVersionResponse(false), - mRegistrationEnabled(true) + mRegistrationEnabled(true), + mUpdateHost(), + mWorlds(), + mToken() { mToken.clear(); } diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 679447a50..6c24954b7 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -56,12 +56,14 @@ int networkThread(void *data) Network::Network() : mSocket(nullptr), + mServer(), mInBuffer(new char[BUFFER_SIZE]), mOutBuffer(new char[BUFFER_SIZE]), mInSize(0), mOutSize(0), mToSkip(0), mState(IDLE), + mError(), mWorkerThread(nullptr), mMutex(SDL_CreateMutex()), mSleep(config.getIntValue("networksleep")) diff --git a/src/net/ea/network.h b/src/net/ea/network.h index e0066afaf..2f8a1c0d1 100644 --- a/src/net/ea/network.h +++ b/src/net/ea/network.h @@ -45,7 +45,7 @@ class Network A_DELETE_COPY(Network) - ~Network(); + virtual ~Network(); bool connect(ServerInfo server); diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index cacb65548..51e006779 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -30,6 +30,7 @@ namespace Ea { NpcHandler::NpcHandler() : + mNpcDialogs(), mDialog(nullptr) { } |