From: Thomas Jarosch Date: Mon, 12 Dec 2011 11:19:17 +0000 (+0100) Subject: Constification X-Git-Tag: v1.3~45 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=6f1e944790e39b703fea0f3298a376ecb7f23f50;p=pingcheck Constification --- diff --git a/src/host/networkinterfacelist.cpp b/src/host/networkinterfacelist.cpp index 4052e0c..f3015ab 100644 --- a/src/host/networkinterfacelist.cpp +++ b/src/host/networkinterfacelist.cpp @@ -48,7 +48,7 @@ NetworkInterfaceList::~NetworkInterfaceList() { destroy_list(); } -} +} //lint !e1579 /** * @brief Find the @c ifaddrs structure that represents the network interface @@ -103,7 +103,7 @@ const struct ifaddrs * NetworkInterfaceList::find_interface( * * @return @c true if the list is initialized, or @false if it is not. */ -bool NetworkInterfaceList::initialized() +bool NetworkInterfaceList::initialized() const { return ( IfaFirst != NULL ); } diff --git a/src/host/networkinterfacelist.h b/src/host/networkinterfacelist.h index 8577c84..f08bbf6 100644 --- a/src/host/networkinterfacelist.h +++ b/src/host/networkinterfacelist.h @@ -50,7 +50,7 @@ private: NetworkInterfaceList( const NetworkInterfaceList &other ); NetworkInterfaceList& operator=( const NetworkInterfaceList &other ); - bool initialized(); + bool initialized() const; bool create_list(); void destroy_list();