mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: fix SkipEmptyParts warning for mobile
And while doing that, have all the cases where we already include qthelper.h simply use a define in that header file - but keep the two other instances of the define where the C++ source don't need qthelper.h otherwise. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d15ecef706
commit
cfd6a1634f
7 changed files with 8 additions and 32 deletions
|
@ -13,12 +13,6 @@
|
|||
#define UINT64_MAX (~0ULL)
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
#define SKIP_EMPTY Qt::SkipEmptyParts
|
||||
#else
|
||||
#define SKIP_EMPTY QString::SkipEmptyParts
|
||||
#endif
|
||||
|
||||
// The following functions fetch an arbitrary-length _unsigned_ integer from either
|
||||
// a file or a memory location in big-endian or little-endian mode. The size of the
|
||||
// integer is passed via a template argument [e.g. getBE<uint16_t>(...)].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue