Changed: Don't use "using namespace" in .h

This commit is contained in:
kervala 2010-09-04 18:24:53 +02:00
parent ee9064da2f
commit 7b778bbb99
2 changed files with 3 additions and 6 deletions

View file

@ -23,8 +23,6 @@
#include <vector>
using namespace NLMISC;
namespace NL3D {

View file

@ -26,7 +26,6 @@
#include "nel/net/udp_sock.h"
#include <vector>
using namespace std;
const uint32 MsgHeaderSize = 1+8; // 8 for the date
@ -72,12 +71,12 @@ struct TReceivedMessage
uint32 userSize() { return (uint32)_Data.size() - MsgHeaderSize; }
/// Return the data vector (event type header byte + user data)
vector<uint8>& data() { return _Data; }
std::vector<uint8>& data() { return _Data; }
private:
/// One byte for event type (header), followed by user data
vector<uint8> _Data;
std::vector<uint8> _Data;
public:
@ -85,7 +84,7 @@ public:
NLNET::CInetAddress AddrFrom;
/// Placeholder vector for address info
vector<uint8> VAddrFrom;
std::vector<uint8> VAddrFrom;
};