Qt: Fix build on old gcc

This commit is contained in:
Vicki Pfau 2020-12-09 00:04:39 -08:00
parent d70be08dd1
commit 2bc19f3a7d
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public:
VFileWrapper(QFileDevice*); VFileWrapper(QFileDevice*);
protected: protected:
constexpr QFileDevice* iodev() { return static_cast<QFileDevice*>(m_iodev); } QFileDevice* iodev() { return static_cast<QFileDevice*>(m_iodev); }
private: private:
static bool close(struct VFile* vf); static bool close(struct VFile* vf);
@ -54,7 +54,7 @@ public:
VFileBufferWrapper(QBuffer*); VFileBufferWrapper(QBuffer*);
protected: protected:
constexpr QBuffer* iodev() { return static_cast<QBuffer*>(m_iodev); } QBuffer* iodev() { return static_cast<QBuffer*>(m_iodev); }
private: private:
static bool close(struct VFile* vf); static bool close(struct VFile* vf);