summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/interfaces/interfaces.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/networksetup/interfaces/interfaces.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/interfaces/interfaces.cpp6
1 files changed, 3 insertions, 3 deletions
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
@@ -72,5 +72,5 @@ QStringList Interfaces::getInterfaceList(){
* @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));
@@ -140,6 +140,6 @@ bool Interfaces::setInterface(QString interface){
* @return bool true if set, false otherwise.
*/
-bool Interfaces::isInterfaceSet(){
- return (currentIface != interfaces.end());
+bool Interfaces::isInterfaceSet() const {
+ return (interfaces.end() != currentIface);
}