[svn] commit: r705 - /branches/parkinglot/src/lib/dns/cpp/rrparamregistry_unittest.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Feb 3 08:56:01 UTC 2010


Author: jinmei
Date: Wed Feb  3 08:56:01 2010
New Revision: 705

Log:
use the constructor instead of SetUp() to silence cppcheck

Modified:
    branches/parkinglot/src/lib/dns/cpp/rrparamregistry_unittest.cc

Modified: branches/parkinglot/src/lib/dns/cpp/rrparamregistry_unittest.cc
==============================================================================
--- branches/parkinglot/src/lib/dns/cpp/rrparamregistry_unittest.cc (original)
+++ branches/parkinglot/src/lib/dns/cpp/rrparamregistry_unittest.cc Wed Feb  3 08:56:01 2010
@@ -31,7 +31,7 @@
 namespace {
 class RRParamRegistryTest : public ::testing::Test {
 protected:
-    /*virtual void SetUp() {
+    RRParamRegistryTest() {
         ostringstream oss1;
         oss1 << test_class_code;
         test_class_unknown_str = "CLASS" + oss1.str();
@@ -39,7 +39,7 @@
         ostringstream oss2;
         oss2 << test_type_code;
         test_type_unknown_str = "TYPE" + oss2.str();
-    }*/
+    }
 
     string test_class_unknown_str;
     string test_type_unknown_str;




More information about the bind10-changes mailing list