summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qdoc/location.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qdoc/location.cpp b/src/qdoc/location.cpp
index 51fb45b54..cb12e6ea4 100644
--- a/src/qdoc/location.cpp
+++ b/src/qdoc/location.cpp
@@ -463,11 +463,8 @@ QString Location::toString() const
QString Location::top() const
{
- QString str = filePath();
- if (!QDir::isAbsolutePath(str)) {
- QDir path(str);
- str = path.absolutePath();
- }
+ QDir path(filePath());
+ QString str = path.absolutePath();
if (lineNo() >= 1) {
str += QLatin1Char(':');
str += QString::number(lineNo());