From 01a65acdd6fee5c8fc4a61dde71f4d9784d3e16a Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Tue, 4 Dec 2012 16:56:44 +0100 Subject: [PATCH] Do not use namespace using-directives according to Google style guidelines "build/namespaces" --- telldus-core/common/EventHandler_win.cpp | 4 +++- telldus-core/common/Event_win.cpp | 4 ++-- telldus-core/common/Socket_win.cpp | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/telldus-core/common/EventHandler_win.cpp b/telldus-core/common/EventHandler_win.cpp index 984019bb..1fdd6e0e 100644 --- a/telldus-core/common/EventHandler_win.cpp +++ b/telldus-core/common/EventHandler_win.cpp @@ -11,7 +11,7 @@ #include #include -using namespace TelldusCore; +namespace TelldusCore { class EventHandler::PrivateData { public: @@ -73,3 +73,5 @@ bool EventHandler::waitForAny() { return true; } } + +} // namespace TelldusCore diff --git a/telldus-core/common/Event_win.cpp b/telldus-core/common/Event_win.cpp index 4af3a09c..522e3a77 100644 --- a/telldus-core/common/Event_win.cpp +++ b/telldus-core/common/Event_win.cpp @@ -7,7 +7,7 @@ #include "common/Event.h" #include "common/Thread.h" -using namespace TelldusCore; +namespace TelldusCore { class Event::PrivateData { public: @@ -38,4 +38,4 @@ void Event::sendSignal() { SetEvent(d->event); } - +} // namespace TelldusCore diff --git a/telldus-core/common/Socket_win.cpp b/telldus-core/common/Socket_win.cpp index 66740d2a..c1d2fec3 100644 --- a/telldus-core/common/Socket_win.cpp +++ b/telldus-core/common/Socket_win.cpp @@ -12,7 +12,7 @@ #define BUFSIZE 512 -using namespace TelldusCore; +namespace TelldusCore { class Socket::PrivateData { public: @@ -195,4 +195,6 @@ void Socket::write(const std::wstring &msg){ bool Socket::isConnected(){ return d->connected; -} \ No newline at end of file +} + +} // namespace TelldusCore