valgrind backend: fix bug "!line == -1"

Change-Id: I2b467d3954fa603fa8ac59f4681716ea8d2a1d36
Reviewed-on: http://codereview.qt.nokia.com/1310
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
hjk
2011-07-07 14:45:27 +02:00
committed by Robert Löhning
parent 6400d8423a
commit 10fb989cf6
2 changed files with 3 additions and 5 deletions

View File

@@ -248,7 +248,7 @@ QString Error::toXml() const
if (!frame.file().isEmpty()) {
stream << " <file>" << frame.file() << "</file>\n";
}
if (!frame.line() == -1) {
if (frame.line() != -1) {
stream << " <line>" << frame.line() << "</line>";
}
stream << " </frame>\n";

View File

@@ -43,9 +43,7 @@ namespace XmlProtocol {
class Frame::Private : public QSharedData
{
public:
explicit Private() :
ip(0), line( -1 )
{}
Private() : ip(0), line(-1) {}
bool operator==(const Private &other) const
{
@@ -74,7 +72,7 @@ Frame::~Frame()
}
Frame::Frame(const Frame &other) :
d( other.d )
d(other.d)
{
}