diff --git a/language/duchain/navigation/useswidget.h b/language/duchain/navigation/useswidget.h --- a/language/duchain/navigation/useswidget.h +++ b/language/duchain/navigation/useswidget.h @@ -72,7 +72,7 @@ explicit NavigatableWidgetList(bool allowScrolling = false, uint maxHeight = 0, bool vertical = true); ~NavigatableWidgetList() override; void addItem(QWidget* widget, int pos = -1); - void addHeaderItem(QWidget* widget, Qt::Alignment alignment = nullptr); + void addHeaderItem(QWidget* widget, Qt::Alignment alignment = {}); ///Whether items were added to this list using addItem(..) bool hasItems() const; ///Deletes all items that were added using addItem diff --git a/shell/documentcontroller.cpp b/shell/documentcontroller.cpp --- a/shell/documentcontroller.cpp +++ b/shell/documentcontroller.cpp @@ -211,7 +211,7 @@ IDocument* openDocumentInternal( const QUrl & inputUrl, const QString& prefName = QString(), const KTextEditor::Range& range = KTextEditor::Range::invalid(), const QString& encoding = QString(), - DocumentController::DocumentActivationParams activationParams = nullptr, + DocumentController::DocumentActivationParams activationParams = {}, IDocument* buddy = nullptr) { Q_ASSERT(!inputUrl.isRelative()); diff --git a/shell/watcheddocumentset.cpp b/shell/watcheddocumentset.cpp --- a/shell/watcheddocumentset.cpp +++ b/shell/watcheddocumentset.cpp @@ -95,22 +95,22 @@ emit m_documentSet->changed(); } - void setDocuments(const DocumentSet& docs, ActionFlags flags = nullptr) + void setDocuments(const DocumentSet& docs, ActionFlags flags = {}) { m_documents = docs; doUpdate(flags); } - void addDocument(const IndexedString& doc, ActionFlags flags = nullptr) + void addDocument(const IndexedString& doc, ActionFlags flags = {}) { if (m_documents.contains(doc)) return; m_documents.insert(doc); doUpdate(flags); } - void delDocument(const IndexedString& doc, ActionFlags flags = nullptr) + void delDocument(const IndexedString& doc, ActionFlags flags = {}) { if (!m_documents.contains(doc)) return; diff --git a/util/multilevellistview.h b/util/multilevellistview.h --- a/util/multilevellistview.h +++ b/util/multilevellistview.h @@ -52,7 +52,7 @@ * @param parent parent widget * @param f window flags, passed to QWidget */ - explicit MultiLevelListView(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr); + explicit MultiLevelListView(QWidget* parent = nullptr, Qt::WindowFlags f = {}); /** * Default destructor */ diff --git a/vcs/widgets/standardvcslocationwidget.h b/vcs/widgets/standardvcslocationwidget.h --- a/vcs/widgets/standardvcslocationwidget.h +++ b/vcs/widgets/standardvcslocationwidget.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit StandardVcsLocationWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr); + explicit StandardVcsLocationWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {}); VcsLocation location() const override; bool isCorrect() const override; QUrl url() const; diff --git a/vcs/widgets/vcslocationwidget.h b/vcs/widgets/vcslocationwidget.h --- a/vcs/widgets/vcslocationwidget.h +++ b/vcs/widgets/vcslocationwidget.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit VcsLocationWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr); + explicit VcsLocationWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {}); /** @returns the VcsLocation specified in the widget. */ virtual VcsLocation location() const=0;