forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user