Misc: modernize C++: replace 'typedef' with 'using'

This commit is contained in:
wmayer
2022-08-30 11:10:02 +02:00
parent 5f91eaa5eb
commit e93fca18c0
3 changed files with 7 additions and 7 deletions

View File

@@ -33,10 +33,10 @@
#include <QOpenGLVersionProfile>
#include <QOpenGLFunctions>
typedef QOpenGLContext QtGLContext;
typedef QSurfaceFormat QtGLFormat;
typedef QOpenGLWidget QtGLWidget;
typedef QOpenGLFramebufferObject QtGLFramebufferObject;
typedef QOpenGLFramebufferObjectFormat QtGLFramebufferObjectFormat;
using QtGLContext = QOpenGLContext;
using QtGLFormat = QSurfaceFormat;
using QtGLWidget = QOpenGLWidget;
using QtGLFramebufferObject = QOpenGLFramebufferObject;
using QtGLFramebufferObjectFormat = QOpenGLFramebufferObjectFormat;
#endif //QUARTER_QTOPENGL_H