]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2536] Remove "using namespace" from headers (last remnant)
authorMukund Sivaraman <muks@isc.org>
Tue, 4 Feb 2014 21:48:17 +0000 (03:18 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 4 Feb 2014 21:49:34 +0000 (03:19 +0530)
The daemons have been exorcised. This codebase is now clean.

src/lib/dhcp/std_option_defs.h

index 6611f199e69633d28ef2098b55b5017bcfefb213..31723c164aaabfe947c585235ba23e61d09e2fe0 100644 (file)
@@ -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