Commit 10fb989c authored by hjk's avatar hjk Committed by Robert Löhning
Browse files

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

Change-Id: I2b467d3954fa603fa8ac59f4681716ea8d2a1d36
Reviewed-on: http://codereview.qt.nokia.com/1310


Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
parent 6400d842
...@@ -248,7 +248,7 @@ QString Error::toXml() const ...@@ -248,7 +248,7 @@ QString Error::toXml() const
if (!frame.file().isEmpty()) { if (!frame.file().isEmpty()) {
stream << " <file>" << frame.file() << "</file>\n"; stream << " <file>" << frame.file() << "</file>\n";
} }
if (!frame.line() == -1) { if (frame.line() != -1) {
stream << " <line>" << frame.line() << "</line>"; stream << " <line>" << frame.line() << "</line>";
} }
stream << " </frame>\n"; stream << " </frame>\n";
......
...@@ -43,9 +43,7 @@ namespace XmlProtocol { ...@@ -43,9 +43,7 @@ namespace XmlProtocol {
class Frame::Private : public QSharedData class Frame::Private : public QSharedData
{ {
public: public:
explicit Private() : Private() : ip(0), line(-1) {}
ip(0), line( -1 )
{}
bool operator==(const Private &other) const bool operator==(const Private &other) const
{ {
...@@ -74,7 +72,7 @@ Frame::~Frame() ...@@ -74,7 +72,7 @@ Frame::~Frame()
} }
Frame::Frame(const Frame &other) : Frame::Frame(const Frame &other) :
d( other.d ) d(other.d)
{ {
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment