From dc04694b92956dee8a33305d4bd8f0b10eb03ad3 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 20 Oct 2020 15:55:23 +0200 Subject: qdoc: Fix QList::removeAll() invocations to build After qtbase/3c74ba1f8b1052e684c67cbbb6f99eb4f7146f40, the type needs to be specified. Change-Id: Ic426e3088b14c9465d84acd760e35b9e87b0b231 Reviewed-by: Giuseppe D'Angelo --- src/qdoc/docbookgenerator.cpp | 2 +- src/qdoc/functionnode.cpp | 2 +- src/qdoc/generator.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qdoc/docbookgenerator.cpp b/src/qdoc/docbookgenerator.cpp index a32ce6f76..9b127ae26 100644 --- a/src/qdoc/docbookgenerator.cpp +++ b/src/qdoc/docbookgenerator.cpp @@ -2229,7 +2229,7 @@ void DocBookGenerator::generateLinkToExample(const ExampleNode *en, const QStrin // Construct a path to the example; / QStringList path = QStringList() << Config::instance().getString(CONFIG_EXAMPLESINSTALLPATH) << en->name(); - path.removeAll({}); + path.removeAll(QString()); writer->writeStartElement(dbNamespace, "para"); writer->writeStartElement(dbNamespace, "link"); diff --git a/src/qdoc/functionnode.cpp b/src/qdoc/functionnode.cpp index 9b5a8cec3..dc499efad 100644 --- a/src/qdoc/functionnode.cpp +++ b/src/qdoc/functionnode.cpp @@ -505,7 +505,7 @@ QString FunctionNode::signature(bool values, bool noReturnType, bool templatePar elements << templateDecl(); if (!noReturnType) elements << m_returnType; - elements.removeAll({}); + elements.removeAll(QString()); if (!isMacroWithoutParams()) { elements << name() + QLatin1Char('(') + m_parameters.signature(values) + QLatin1Char(')'); diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp index cea19c996..81f0583f6 100644 --- a/src/qdoc/generator.cpp +++ b/src/qdoc/generator.cpp @@ -968,7 +968,7 @@ void Generator::generateLinkToExample(const ExampleNode *en, CodeMarker *marker, if (pathRoot.isEmpty()) pathRoot = Config::instance().getString(CONFIG_EXAMPLESINSTALLPATH); QStringList path = QStringList() << pathRoot << en->name(); - path.removeAll({}); + path.removeAll(QString()); Text text; text << Atom::ParaLeft -- cgit v1.2.3