summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-22 11:19:54 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-09-03 17:56:24 +0200
commit00e9be42463d012d6288ad03bed9ee37e179c35f (patch)
tree541c9b8cf3b280c2b18ef1980a1b635386819ba7 /src/plugins/qtsupport
parent26e9f25a3ee260b95be7e08e0236698c50053290 (diff)
downloadqt-creator-00e9be42463d012d6288ad03bed9ee37e179c35f.tar.gz
make messages from dynamic code tell a useful location
"(eval)" does not exactly help to find the error source. Change-Id: Iecd03e6a4909ca6d7eab846844ca4415ebfa3429 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/profilereader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/profilereader.cpp b/src/plugins/qtsupport/profilereader.cpp
index b2508b28c9..0612e4f4e3 100644
--- a/src/plugins/qtsupport/profilereader.cpp
+++ b/src/plugins/qtsupport/profilereader.cpp
@@ -40,8 +40,10 @@ using namespace QtSupport;
static QString format(const QString &fileName, int lineNo, const QString &msg)
{
- if (lineNo)
+ if (lineNo > 0)
return QString::fromLatin1("%1(%2): %3").arg(fileName, QString::number(lineNo), msg);
+ else if (lineNo)
+ return QString::fromLatin1("%1: %3").arg(fileName, msg);
else
return msg;
}