diff --git a/kdevplatform/language/codegen/templateclassgenerator.cpp b/kdevplatform/language/codegen/templateclassgenerator.cpp index 61debb8fa9fbaba6f4a8519a9e863f770bfdeaa1..f35cbfeb0d98af103472053b4fae07884d0ab1f4 100644 --- a/kdevplatform/language/codegen/templateclassgenerator.cpp +++ b/kdevplatform/language/codegen/templateclassgenerator.cpp @@ -34,6 +34,8 @@ #include +#include + using namespace KDevelop; /// @param base String such as 'public QObject' or 'QObject' @@ -247,7 +249,7 @@ void TemplateClassGenerator::setIdentifier(const QString& identifier) Q_D(TemplateClassGenerator); d->renderer.addVariable(QStringLiteral("identifier"), identifier); - const QStringList separators{ + const std::array separators { QStringLiteral("::"), QStringLiteral("."), QStringLiteral(":"),