From 6f1e944790e39b703fea0f3298a376ecb7f23f50 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 12 Dec 2011 12:19:17 +0100 Subject: [PATCH] Constification --- src/host/networkinterfacelist.cpp | 4 ++-- src/host/networkinterfacelist.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 1.7.1