use own namespace
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
#include <string.h>
|
||||
#include "clock.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
/** the name of each @a LogFacility. */
|
||||
static const char *facilityNames[] = {
|
||||
"main",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/** \file queue.h */
|
||||
|
||||
using namespace std;
|
||||
using std::list;
|
||||
|
||||
/**
|
||||
* Thread safe template class for queuing items.
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <string>
|
||||
#include "clock.h"
|
||||
|
||||
using namespace std;
|
||||
using std::streamsize;
|
||||
|
||||
RotateFile::~RotateFile() {
|
||||
if (m_stream) {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
* Helpers for writing to rotating files.
|
||||
*/
|
||||
|
||||
using namespace std;
|
||||
using std::string;
|
||||
|
||||
/**
|
||||
* Helper class for writing to a rotating file with maximum size.
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#include <string.h>
|
||||
#include <cstdlib>
|
||||
|
||||
using namespace std;
|
||||
|
||||
TCPSocket::TCPSocket(int sfd, struct sockaddr_in* address) : m_sfd(sfd) {
|
||||
char ip[17];
|
||||
inet_ntop(AF_INET, (struct in_addr*)&(address->sin_addr.s_addr), ip, (socklen_t)sizeof(ip)-1);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
/** \file tcpsocket.h */
|
||||
|
||||
using namespace std;
|
||||
using std::string;
|
||||
|
||||
#ifdef __MACH__
|
||||
#ifndef MSG_NOSIGNAL
|
||||
|
||||
Reference in New Issue
Block a user