]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3991] Fixed more cppcheck virtualCallInConstructor
authorFrancis Dupont <fdupont@isc.org>
Wed, 13 May 2026 10:55:29 +0000 (12:55 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 27 May 2026 20:03:02 +0000 (22:03 +0200)
src/lib/asiolink/tcp_socket.h
src/lib/asiolink/udp_socket.h
src/lib/dhcp/option_classless_static_route.cc

index 148316dc6bf7948bdb8a2ddf0355ed64901b09fa..e604d5e14316c914a54f22a127a1ece1c5975b4c 100644 (file)
@@ -268,7 +268,7 @@ TCPSocket<C>::TCPSocket(const IOServicePtr& io_service) : io_service_(io_service
 
 template <typename C>
 TCPSocket<C>::~TCPSocket() {
-    close();
+    TCPSocket<C>::close();
 }
 
 // Open the socket.
index 50bfb74d9b35972ab0036685b2e83383b8bb2291..1aef90c6df975159ec40fad267e25077c2a2665a 100644 (file)
@@ -179,7 +179,7 @@ UDPSocket<C>::UDPSocket(const IOServicePtr& io_service) : io_service_(io_service
 
 template <typename C>
 UDPSocket<C>::~UDPSocket() {
-    close();
+    UDPSocket<C>::close();
 }
 
 // Open the socket.
index 02cf67551ee9e84030ccc3f7185ea42f911f2fa9..2b6a844ade8d35ecd33ef5f982053b3f916e01ab 100644 (file)
@@ -23,7 +23,7 @@ OptionClasslessStaticRoute::OptionClasslessStaticRoute(OptionBufferConstIter beg
                                                        bool convenient_notation)
     : Option(V4, DHO_CLASSLESS_STATIC_ROUTE), static_routes_(), data_len_(0),
       convenient_notation_(convenient_notation) {
-    unpack(begin, end);
+    OptionClasslessStaticRoute::unpack(begin, end);
 }
 
 OptionPtr