diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-31 11:44:54 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-31 20:31:31 +0000 |
commit | 1c95d379f2d4f53ca8e4d33b27d37b7dab6d7596 (patch) | |
tree | bd593bad43cdda9987bfeadf557d01366b4e98d6 /src/designer/src/components/propertyeditor/previewwidget.cpp | |
parent | b0fd9623651ca32187e4f79ad299ef43ce8347a0 (diff) | |
download | qttools-1c95d379f2d4f53ca8e4d33b27d37b7dab6d7596.tar.gz |
Qt Designer: Fix clang-tidy warnings about class definitions
- Use ' = default' for trivial constructors/destructors
- replace virtual by override or add override where applicable
- Return *this from assignment operators of custom iterators
- Replace trivial constructors by member initialization for simple structs
- Add Q_DISABLE_COPY
Change-Id: I67fb07cb82ccba93a41d58a8a0782628c9c681d9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/propertyeditor/previewwidget.cpp')
-rw-r--r-- | src/designer/src/components/propertyeditor/previewwidget.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/designer/src/components/propertyeditor/previewwidget.cpp b/src/designer/src/components/propertyeditor/previewwidget.cpp index 5b30d84f6..cc5a3af31 100644 --- a/src/designer/src/components/propertyeditor/previewwidget.cpp +++ b/src/designer/src/components/propertyeditor/previewwidget.cpp @@ -38,9 +38,7 @@ PreviewWidget::PreviewWidget(QWidget *parent) ui.setupUi(this); } -PreviewWidget::~PreviewWidget() -{ -} +PreviewWidget::~PreviewWidget() = default; QT_END_NAMESPACE |