From d3301ad9a74fdf693551bd70bc3cf34b311eaa49 Mon Sep 17 00:00:00 2001 From: benmeyer Date: Wed, 13 Nov 2002 16:25:04 +0000 Subject: code cleanup const's placed in code --- (limited to 'noncore/net/networksetup/interfaces/interfaces.cpp') diff --git a/noncore/net/networksetup/interfaces/interfaces.cpp b/noncore/net/networksetup/interfaces/interfaces.cpp index e49998e..8f685fe 100644 --- a/noncore/net/networksetup/interfaces/interfaces.cpp +++ b/noncore/net/networksetup/interfaces/interfaces.cpp @@ -71,7 +71,7 @@ QStringList Interfaces::getInterfaceList(){ * @param interface interface to check to see if it is on or not. * @return true is interface is in auto */ -bool Interfaces::isAuto(const QString &interface){ +bool Interfaces::isAuto(const QString &interface) const { QStringList autoLines = interfaces.grep(QRegExp(AUTO)); QStringList awi = autoLines.grep(QRegExp(interface)); if(awi.count() > 1) @@ -139,8 +139,8 @@ bool Interfaces::setInterface(QString interface){ * A quick helper funtion to see if the current interface is set. * @return bool true if set, false otherwise. */ -bool Interfaces::isInterfaceSet(){ - return (currentIface != interfaces.end()); +bool Interfaces::isInterfaceSet() const { + return (interfaces.end() != currentIface); } /** -- cgit v0.9.0.2