Misc: modernize C++: replace 'typedef' with 'using'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -136,7 +136,7 @@ struct CCmdParam
|
||||
};
|
||||
|
||||
// this class is actually a map of strings to vectors
|
||||
typedef map<StringType, CCmdParam> _CCmdLine;
|
||||
using _CCmdLine = map<StringType, CCmdParam>;
|
||||
|
||||
// the command line parser class
|
||||
class CCmdLine : public _CCmdLine
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Base {
|
||||
Scientific = 2
|
||||
};
|
||||
|
||||
typedef int NumberOptions;
|
||||
using NumberOptions = int;
|
||||
NumberOptions option;
|
||||
NumberFormat format;
|
||||
int precision;
|
||||
|
||||
Reference in New Issue
Block a user