summaryrefslogtreecommitdiffstats
path: root/app/perfsymboltable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/perfsymboltable.cpp')
-rw-r--r--app/perfsymboltable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp
index 305e70e..fccf857 100644
--- a/app/perfsymboltable.cpp
+++ b/app/perfsymboltable.cpp
@@ -178,7 +178,7 @@ void PerfSymbolTable::registerElf(const PerfRecordMmap &mmap, const QString &app
{
QLatin1String filePath(mmap.filename());
// special regions, such as [heap], [vdso], [stack], ... as well as //anon
- const bool isSpecialRegion = (filePath.at(0) == '[' && filePath.at(filePath.size() - 1) == ']')
+ const bool isSpecialRegion = (mmap.filename().startsWith('[') && mmap.filename().endsWith(']'))
|| filePath == QLatin1String("//anon");
QFileInfo fileInfo(filePath);
QFileInfo fullPath;