From: Milian Wolff Date: Sun, 7 Jun 2015 11:50:16 +0000 (+0200) Subject: Return empty QString when no file was available. X-Git-Tag: submit/tizen/20180620.112952^2~328^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=465d0aad3cd0ed54f584989a61be32227154424c;p=sdk%2Ftools%2Fheaptrack.git Return empty QString when no file was available. Fixes assertion in ModelTest. --- diff --git a/gui/model.cpp b/gui/model.cpp index 57d353b..090d287 100644 --- a/gui/model.cpp +++ b/gui/model.cpp @@ -189,6 +189,8 @@ QVariant Model::allocationData(const AllocationData& allocation, const IpIndex& } else if (ip.fileIndex) { auto file = QString::fromStdString(m_data.stringify(ip.fileIndex)); return file + QLatin1Char(':') + QString::number(ip.line); + } else { + return QString(); } break; }