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

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

Change-Id: I2b467d3954fa603fa8ac59f4681716ea8d2a1d36
Reviewed-on: http://codereview.qt.nokia.com/1310Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
parent 6400d842
......@@ -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";
......
......@@ -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)
{
}
......
Markdown is supported
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