diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2017-04-13 12:04:34 +0200 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2017-04-13 12:19:31 +0000 |
commit | ea24ce50779b86771a2ee1f7264375990bfb30b6 (patch) | |
tree | 356c58607168f911ca20b2323c1c722009f33e54 | |
parent | b403dc3a48016bfb2c4787e4039485576ab1faee (diff) |
Make ElfInfo constructor explicit
Otherwise a statement like qDebug() << QFileInfo() would pick up
this constructor and lead to confusing debug output.
Change-Id: Idb9692bd36983b055409cb347e3175aaf5d75eda
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | app/perfelfmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/perfelfmap.h b/app/perfelfmap.h index 381fbc1..8812721 100644 --- a/app/perfelfmap.h +++ b/app/perfelfmap.h @@ -28,8 +28,9 @@ class PerfElfMap { public: struct ElfInfo { - ElfInfo(const QFileInfo &localFile = QFileInfo(), quint64 addr = 0, quint64 length = 0, - quint64 pgoff = 0, const QByteArray &originalFileName = {}) : + explicit ElfInfo(const QFileInfo &localFile = QFileInfo(), quint64 addr = 0, + quint64 length = 0, quint64 pgoff = 0, + const QByteArray &originalFileName = {}) : localFile(localFile), originalFileName(originalFileName.isEmpty() ? localFile.fileName().toLocal8Bit() |