From 642f040cd802fbe19e0f0d11956b4a6a71391b17 Mon Sep 17 00:00:00 2001 From: Felix Mauch Date: Wed, 10 Apr 2019 17:24:34 +0200 Subject: [PATCH] Do not use "using namespace" in header files --- include/ur_rtde_driver/primary/primary_parser.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/ur_rtde_driver/primary/primary_parser.h b/include/ur_rtde_driver/primary/primary_parser.h index 26fcf85..3510342 100644 --- a/include/ur_rtde_driver/primary/primary_parser.h +++ b/include/ur_rtde_driver/primary/primary_parser.h @@ -33,14 +33,13 @@ namespace ur_driver { namespace primary_interface { -using namespace comm; class PrimaryParser : public comm::Parser { public: PrimaryParser() = default; virtual ~PrimaryParser() = default; - bool parse(BinParser& bp, std::vector>>& results) + bool parse(comm::BinParser& bp, std::vector>>& results) { int32_t packet_size; RobotPackageType type; @@ -66,7 +65,7 @@ public: } // deconstruction of a sub parser will increment the position of the parent parser - BinParser sbp(bp, sub_size); + comm::BinParser sbp(bp, sub_size); sbp.consume(sizeof(sub_size)); RobotStateType type; sbp.parse(type);