Use std::array over QStringList for const array

GIT_SILENT
parent 1fc69b63
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <QFileInfo> #include <QFileInfo>
#include <array>
using namespace KDevelop; using namespace KDevelop;
/// @param base String such as 'public QObject' or 'QObject' /// @param base String such as 'public QObject' or 'QObject'
...@@ -247,7 +249,7 @@ void TemplateClassGenerator::setIdentifier(const QString& identifier) ...@@ -247,7 +249,7 @@ void TemplateClassGenerator::setIdentifier(const QString& identifier)
Q_D(TemplateClassGenerator); Q_D(TemplateClassGenerator);
d->renderer.addVariable(QStringLiteral("identifier"), identifier); d->renderer.addVariable(QStringLiteral("identifier"), identifier);
const QStringList separators{ const std::array<QString,5> separators {
QStringLiteral("::"), QStringLiteral("::"),
QStringLiteral("."), QStringLiteral("."),
QStringLiteral(":"), QStringLiteral(":"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment