]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3711] Compilation fix.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 17 Feb 2015 14:11:16 +0000 (15:11 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 17 Feb 2015 14:11:16 +0000 (15:11 +0100)
src/lib/dhcpsrv/tests/alloc_engine_utils.h

index 16de8c6a520389255bfe8402fd59b87e95209b07..543218d51f445d6835cd7074cce74dad369d7726 100644 (file)
@@ -67,7 +67,6 @@ public:
             :IterativeAllocator(type) {
         }
 
-        using AllocEngine::IterativeAllocator::increaseAddress;
         using AllocEngine::IterativeAllocator::increasePrefix;
     };
 };
@@ -173,16 +172,17 @@ public:
 
     /// @brief Checks if specified address is increased properly
     ///
-    /// Method uses gtest macros to mark check failure.
+    /// Method uses gtest macros to mark check failure. This is a proxy
+    /// method, since increaseAddress was moved to IOAddress class.
     ///
     /// @param alloc IterativeAllocator that is tested
     /// @param input address to be increased
     /// @param exp_output expected address after increase
     void
-    checkAddrIncrease(NakedAllocEngine::NakedIterativeAllocator& alloc,
+    checkAddrIncrease(NakedAllocEngine::NakedIterativeAllocator&,
                       std::string input, std::string exp_output) {
-        EXPECT_EQ(exp_output, alloc.increaseAddress(asiolink::IOAddress(input))
-                  .toText());
+        EXPECT_EQ(exp_output, asiolink::IOAddress::increaseAddress(
+                      asiolink::IOAddress(input)).toText());
     }
 
     /// @brief Checks if increasePrefix() works as expected