summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qelfparser_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-09-10 20:04:38 -0700
committerThiago Macieira <thiago.macieira@intel.com>2021-09-13 20:59:50 -0700
commit55e565c763cdd381904d9378b8a668331c4e40f5 (patch)
treef187b6831a92298790793d2b31d5ffd8182d717d /src/corelib/plugin/qelfparser_p.h
parent96d21faa0156bbf0707b6ef1642245fdd2d55d00 (diff)
QElfParser: don't use int for the enum
An enum shows the proper values in the debugger... Pick-to: 6.2 Change-Id: I2de1b4dfacd443148279fffd16a3a5848196983c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/corelib/plugin/qelfparser_p.h')
-rw-r--r--src/corelib/plugin/qelfparser_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qelfparser_p.h b/src/corelib/plugin/qelfparser_p.h
index 72ee30d282..796b987eb3 100644
--- a/src/corelib/plugin/qelfparser_p.h
+++ b/src/corelib/plugin/qelfparser_p.h
@@ -71,7 +71,7 @@ typedef quintptr qelfaddr_t;
class QElfParser
{
public:
- enum { QtMetaDataSection, NoQtSection, NotElf, Corrupt };
+ enum ScanResult { QtMetaDataSection, NoQtSection, NotElf, Corrupt };
enum { ElfLittleEndian = 0, ElfBigEndian = 1 };
struct ElfSectionHeader
@@ -96,7 +96,7 @@ public:
}
const char *parseSectionHeader(const char* s, ElfSectionHeader *sh);
- int parse(const char *m_s, ulong fdlen, const QString &library, QLibraryPrivate *lib, qsizetype *pos, qsizetype *sectionlen);
+ ScanResult parse(const char *m_s, ulong fdlen, const QString &library, QLibraryPrivate *lib, qsizetype *pos, qsizetype *sectionlen);
};
QT_END_NAMESPACE