use own namespace

This commit is contained in:
john30
2017-01-14 16:41:54 +01:00
parent 7bd9446f13
commit 774e01e937
43 changed files with 196 additions and 48 deletions
-2
View File
@@ -25,8 +25,6 @@
#include <string.h>
#include "clock.h"
using namespace std;
/** the name of each @a LogFacility. */
static const char *facilityNames[] = {
"main",
+1 -1
View File
@@ -26,7 +26,7 @@
/** \file queue.h */
using namespace std;
using std::list;
/**
* Thread safe template class for queuing items.
+1 -1
View File
@@ -27,7 +27,7 @@
#include <string>
#include "clock.h"
using namespace std;
using std::streamsize;
RotateFile::~RotateFile() {
if (m_stream) {
+1 -1
View File
@@ -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.
-2
View File
@@ -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);
+1 -1
View File
@@ -26,7 +26,7 @@
/** \file tcpsocket.h */
using namespace std;
using std::string;
#ifdef __MACH__
#ifndef MSG_NOSIGNAL