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

View File

@@ -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

View File

@@ -68,7 +68,7 @@ namespace Base {
Scientific = 2
};
typedef int NumberOptions;
using NumberOptions = int;
NumberOptions option;
NumberFormat format;
int precision;