Constification
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 Dec 2011 11:19:17 +0000 (12:19 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 Dec 2011 11:19:17 +0000 (12:19 +0100)
src/host/networkinterfacelist.cpp
src/host/networkinterfacelist.h

index 4052e0c..f3015ab 100644 (file)
@@ -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 );
 }
index 8577c84..f08bbf6 100644 (file)
@@ -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();