Some more namespace hygiene for "using decl;".
This commit is contained in:
+1
-1
@@ -40,13 +40,13 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
long int myatoi( const char *str );
|
long int myatoi( const char *str );
|
||||||
|
|
||||||
class PRNG;
|
class PRNG;
|
||||||
|
|
||||||
namespace Crypto {
|
namespace Crypto {
|
||||||
|
using std::string;
|
||||||
|
|
||||||
class CryptoException : public std::exception {
|
class CryptoException : public std::exception {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include "dos_assert.h"
|
#include "dos_assert.h"
|
||||||
|
|
||||||
using namespace Network;
|
using namespace Network;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
string Compressor::compress_str( const string &input )
|
string Compressor::compress_str( const string &input )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,11 +39,11 @@
|
|||||||
|
|
||||||
#include "transportinstruction.pb.h"
|
#include "transportinstruction.pb.h"
|
||||||
|
|
||||||
using std::vector;
|
|
||||||
using std::string;
|
|
||||||
using namespace TransportBuffers;
|
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
using namespace TransportBuffers;
|
||||||
|
|
||||||
class Fragment
|
class Fragment
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -43,11 +43,11 @@
|
|||||||
#include "transportfragment.h"
|
#include "transportfragment.h"
|
||||||
#include "prng.h"
|
#include "prng.h"
|
||||||
|
|
||||||
using std::list;
|
|
||||||
using std::pair;
|
|
||||||
using namespace TransportBuffers;
|
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
using std::list;
|
||||||
|
using std::pair;
|
||||||
|
using namespace TransportBuffers;
|
||||||
|
|
||||||
/* timing parameters */
|
/* timing parameters */
|
||||||
const int SEND_INTERVAL_MIN = 20; /* ms between frames */
|
const int SEND_INTERVAL_MIN = 20; /* ms between frames */
|
||||||
const int SEND_INTERVAL_MAX = 250; /* ms between frames */
|
const int SEND_INTERVAL_MAX = 250; /* ms between frames */
|
||||||
|
|||||||
@@ -40,11 +40,11 @@
|
|||||||
|
|
||||||
#include "parseraction.h"
|
#include "parseraction.h"
|
||||||
|
|
||||||
using std::deque;
|
|
||||||
using std::list;
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
using std::deque;
|
||||||
|
using std::list;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
enum UserEventType {
|
enum UserEventType {
|
||||||
UserByteType = 0,
|
UserByteType = 0,
|
||||||
ResizeType = 1
|
ResizeType = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user