From 635b5c64f3107d4c01ae314fb75e02c571b51c54 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 21 Mar 2011 10:51:51 +0100 Subject: transformed c syntax comments to c++ convention... --- src/sysInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sysInfo.cpp') diff --git a/src/sysInfo.cpp b/src/sysInfo.cpp index 81e39f8..ff114e8 100644 --- a/src/sysInfo.cpp +++ b/src/sysInfo.cpp @@ -7,7 +7,7 @@ sysInfo::sysInfo(){ // ------------------------------------------------------------------------------------------------ sysInfo::~sysInfo(){} // ------------------------------------------------------------------------------------------------ -QString sysInfo::getInfo(QString& infoName){ +QString sysInfo::getInfo(const QString& infoName){ qxtLog->debug() << "[sysInfo] requested " << infoName; if (infoName == QString("mac")) return getMACAddress(); @@ -22,7 +22,7 @@ QString sysInfo::getInfo(QString& infoName){ } // ------------------------------------------------------------------------------------------------ QString sysInfo::getMACAddress(){ - /* Returns MAC address of eth0 for now. */ + // Returns MAC address of eth0 for now QNetworkInterface qni = QNetworkInterface::interfaceFromName(QString("eth0")); if (!qni.isValid()){ qxtLog->debug() << "No interface matching \"eth0\" found."; -- cgit v1.2.3-55-g7522