From a3e0b38f607e47588a826cbd7dd04b0c79461a82 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Thu, 4 Nov 2010 16:44:40 +0100 Subject: Removed some TODO comments --- src/vsession.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/vsession.cpp') diff --git a/src/vsession.cpp b/src/vsession.cpp index f4c2326..e2e359a 100644 --- a/src/vsession.cpp +++ b/src/vsession.cpp @@ -54,10 +54,6 @@ QString VSession::getAttribute(const QString &nodeName, const QString &attribute) const { QDomDocument doc = this->doc_; QDomNode n = doc.namedItem("eintrag").namedItem(nodeName); - if (n.isNull()) { - // TODO - } - return this->doc_.namedItem("eintrag").namedItem(nodeName).toElement() .attribute(attribute); } @@ -155,7 +151,6 @@ void VSession::addPrinters(const QString& script, const QString& type) { continue; } - // TODO: check return values, exceptions, ... QDomElement printerNode(doc_.createElement(type)); printerNode.setAttribute("name", tokens.at(1)); printerNode.setAttribute("path", @@ -257,11 +252,7 @@ void VSession::mergePoolXml() { bool VSession::run() const { QString command = getAttribute("command"); if (!command.isEmpty()) { - if (QProcess::startDetached(command)) { - // TODO: save session - return true; - } - return false; + return QProcess::startDetached(command); } VSession session = *this; @@ -302,7 +293,6 @@ QList VSession::readXmlFile(const QString& filepath) { } file.close(); - // TODO: iterate over all child nodes? QString dirName(QFileInfo(filepath).dir().absolutePath()); QDomElement settingsNode = doc.firstChildElement("settings"); for (QDomElement el(settingsNode.firstChildElement("eintrag")); -- cgit v1.2.3-55-g7522