diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-04-26 16:40:37 -0700 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-05-26 18:02:49 +0000 |
commit | 5c2ff22ba117f295718c529198ab42ee4646d90c (patch) | |
tree | bc1a9625b580dde5dd961203b944a18531d306bf /src/corelib/plugin/qelfparser_p.h | |
parent | 2fb026d58b45f50ed7d5666de58c9184e81bbc60 (diff) |
Use void instead of uchar in the endian-swapping function parametersv5.7.0-rc1
This allows us to pass pointers to storage that is not an array of
uchar, which it hardly ever is.
Change-Id: Ifea6e497f11a461db432ffff14490d2c2df21906
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/plugin/qelfparser_p.h')
-rw-r--r-- | src/corelib/plugin/qelfparser_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qelfparser_p.h b/src/corelib/plugin/qelfparser_p.h index 2ecdc4e786..145f00df43 100644 --- a/src/corelib/plugin/qelfparser_p.h +++ b/src/corelib/plugin/qelfparser_p.h @@ -89,9 +89,9 @@ public: T read(const char *s) { if (m_endian == ElfBigEndian) - return qFromBigEndian<T>(reinterpret_cast<const uchar *>(s)); + return qFromBigEndian<T>(s); else - return qFromLittleEndian<T>(reinterpret_cast<const uchar *>(s)); + return qFromLittleEndian<T>(s); } const char *parseSectionHeader(const char* s, ElfSectionHeader *sh); |