Skip to content
Snippets Groups Projects
Commit 4905f88a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

tidy/modernize-use-default-member-init + manual corrections

parent f8860a2e
No related branches found
No related tags found
1 merge request!2185cleanup suggested by clang-tidy
...@@ -300,7 +300,6 @@ void InstrumentLibraryEditor::onInstrumentChangedByEditor() ...@@ -300,7 +300,6 @@ void InstrumentLibraryEditor::onInstrumentChangedByEditor()
InstrumentLibraryEditor::TreeModel::TreeModel(QObject* parent, InstrumentModel* model) InstrumentLibraryEditor::TreeModel::TreeModel(QObject* parent, InstrumentModel* model)
: InstrumentsTreeModel(parent, model) : InstrumentsTreeModel(parent, model)
, m_newInstrument(nullptr)
{ {
} }
......
...@@ -39,7 +39,7 @@ protected: ...@@ -39,7 +39,7 @@ protected:
void mouseDoubleClickEvent(QMouseEvent* event) override; void mouseDoubleClickEvent(QMouseEvent* event) override;
private: private:
bool m_hover; bool m_hover{false};
QAbstractItemView* m_view; QAbstractItemView* m_view;
QModelIndex m_index; QModelIndex m_index;
Qt::Alignment m_horizontalAlignment; Qt::Alignment m_horizontalAlignment;
...@@ -61,7 +61,6 @@ public: ...@@ -61,7 +61,6 @@ public:
ItemViewOverlayWidget::ItemViewOverlayWidget(QAbstractItemView* view, const QModelIndex& index) ItemViewOverlayWidget::ItemViewOverlayWidget(QAbstractItemView* view, const QModelIndex& index)
: QWidget(view) : QWidget(view)
, m_hover(false)
, m_view(view) , m_view(view)
, m_index(index) , m_index(index)
, m_horizontalAlignment(Qt::AlignRight) , m_horizontalAlignment(Qt::AlignRight)
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
SampleEditor::SampleEditor(QWidget* parent, ProjectDocument* document) SampleEditor::SampleEditor(QWidget* parent, ProjectDocument* document)
: QScrollArea(parent) : QScrollArea(parent)
, m_currentSampleWidget(nullptr) , m_currentSampleWidget(nullptr)
, m_currentSample(nullptr)
, m_document(document) , m_document(document)
{ {
QScrollArea::setWidgetResizable(true); QScrollArea::setWidgetResizable(true);
......
...@@ -30,7 +30,6 @@ MaskEditorToolpanel::MaskEditorToolpanel() ...@@ -30,7 +30,6 @@ MaskEditorToolpanel::MaskEditorToolpanel()
: m_listView(new QListView) : m_listView(new QListView)
, m_maskContainerModel(nullptr) , m_maskContainerModel(nullptr)
, m_currentMaskItem(nullptr) , m_currentMaskItem(nullptr)
, m_inhibitSelectionChange(false)
{ {
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding);
setObjectName(QLatin1String("MaskEditorToolPanel")); setObjectName(QLatin1String("MaskEditorToolPanel"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment