From 0acae04908d05fffdd333ed5bcd16d4e389d7863 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 6 Jan 2009 23:32:16 -0500 Subject: Krazy check fixes --- sigmodr/ValidationDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigmodr/ValidationDialog.cpp') diff --git a/sigmodr/ValidationDialog.cpp b/sigmodr/ValidationDialog.cpp index 43290859..8a32486d 100644 --- a/sigmodr/ValidationDialog.cpp +++ b/sigmodr/ValidationDialog.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -110,9 +110,9 @@ void Sigmodr::ValidationDialog::insertMessage(const QString& msg, const QBrush& void Sigmodr::ValidationDialog::addMessage(const QString& msg) { - if (msg.startsWith("++")) + if (msg.startsWith(QString("++"))) m_parents.push(ObjectErrorCount(new QTreeWidgetItem(QStringList(msg.mid(2))), 0)); - else if (msg.startsWith("--")) + else if (msg.startsWith(QString("--"))) { ObjectErrorCount count = m_parents.pop(); if (count.second) -- cgit