From bf8e1bffc94530854c862a258b3ca7bbe8459778 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sun, 25 Aug 2019 22:17:12 +0200 Subject: [PATCH] Use std::array over QStringList for const array GIT_SILENT --- kdevplatform/language/codegen/templateclassgenerator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kdevplatform/language/codegen/templateclassgenerator.cpp b/kdevplatform/language/codegen/templateclassgenerator.cpp index 61debb8fa9..f35cbfeb0d 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(":"), -- GitLab