mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
YACReaderFlowGL: initialize data member texture pointers
Moving the initialization of defaultTexture out of the member initializer list gets rid of a GCC's -Wreorder warning. Initialize other texture pointers to improve safety and consistency.
This commit is contained in:
committed by
Felix Kauselmann
parent
b87be81037
commit
21c3bda5d4
@ -119,9 +119,9 @@ protected:
|
||||
int updateCount;
|
||||
int fontSize;
|
||||
|
||||
QOpenGLTexture *defaultTexture;
|
||||
QOpenGLTexture *markTexture;
|
||||
QOpenGLTexture *readingTexture;
|
||||
QOpenGLTexture *defaultTexture = nullptr;
|
||||
QOpenGLTexture *markTexture = nullptr;
|
||||
QOpenGLTexture *readingTexture = nullptr;
|
||||
void initializeGL();
|
||||
void paintGL();
|
||||
void timerEvent(QTimerEvent *);
|
||||
|
Reference in New Issue
Block a user