BIND 10 trac2536, updated. 5b29cdb4be35f2e601a6ea962a9b0c056ff59e4b [2536] Remove "using namespace" from headers (last remnant)
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Feb 4 21:54:28 UTC 2014
The branch, trac2536 has been updated
via 5b29cdb4be35f2e601a6ea962a9b0c056ff59e4b (commit)
from b0297a13fcbfd7309cdc41b8fe314de7201ed264 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5b29cdb4be35f2e601a6ea962a9b0c056ff59e4b
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Feb 5 03:18:17 2014 +0530
[2536] Remove "using namespace" from headers (last remnant)
The daemons have been exorcised. This codebase is now clean.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/std_option_defs.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/std_option_defs.h b/src/lib/dhcp/std_option_defs.h
index 6611f19..31723c1 100644
--- a/src/lib/dhcp/std_option_defs.h
+++ b/src/lib/dhcp/std_option_defs.h
@@ -19,6 +19,9 @@
#include <dhcp/dhcp4.h>
#include <dhcp/dhcp6.h>
+namespace isc {
+namespace dhcp {
+
namespace {
/// @brief Declare an array holding parameters used to create instance
@@ -42,8 +45,6 @@ namespace {
#define NO_RECORD_DEF 0, 0
#endif
-using namespace isc::dhcp;
-
/// @brief Parameters being used to make up an option definition.
struct OptionDefParams {
const char* name; // option name
@@ -332,6 +333,9 @@ const OptionDefParams OPTION_DEF_PARAMS6[] = {
const int OPTION_DEF_PARAMS_SIZE6 =
sizeof(OPTION_DEF_PARAMS6) / sizeof(OPTION_DEF_PARAMS6[0]);
-}; // anonymous namespace
+} // unnamed namespace
+
+} // namespace dhcp
+} // namespace isc
#endif // STD_OPTION_DEFS_H
More information about the bind10-changes
mailing list