diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-06-04 15:24:37 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-06-04 15:47:31 +0200 |
commit | be86ffcb985e34dcd802bac9ff17a8930b11f9c9 (patch) | |
tree | 833d30bc9904aee931f90700ca711c71af2d7826 /tools | |
parent | 0e128824e54a4994682023b7fd0fbb4c1938892c (diff) |
Fix class structure and definitions
- Add override
- Use "= default" for trivial constructors/destructors
- Q_DISABLE_COPY_MOVE to delete move constructors and assignment
Change-Id: If773ad8c092ab8000b268c4231f7f27e5f484e56
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dumpcpp/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp index 534e3ee..d801dc3 100644 --- a/tools/dumpcpp/main.cpp +++ b/tools/dumpcpp/main.cpp @@ -1220,7 +1220,7 @@ bool generateTypeLibrary(QString typeLibFile, QString outname, // class to make related error messages clearer const QByteArray className = classNameFromTypeInfo(typeinfo); declOut << "// stub for vtable-only interface\n" - << "class " << className << " : public QAxObject { Q_DISABLE_COPY(" + << "class " << className << " : public QAxObject { Q_DISABLE_COPY_MOVE(" << className << ") };\n\n"; } break; |