Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Schöps
kdevelop
Commits
bf8e1bff
Commit
bf8e1bff
authored
Aug 25, 2019
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use std::array over QStringList for const array
GIT_SILENT
parent
1fc69b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kdevplatform/language/codegen/templateclassgenerator.cpp
kdevplatform/language/codegen/templateclassgenerator.cpp
+3
-1
No files found.
kdevplatform/language/codegen/templateclassgenerator.cpp
View file @
bf8e1bff
...
...
@@ -34,6 +34,8 @@
#include <QFileInfo>
#include <array>
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
QString
List
separators
{
const
std
::
array
<
QString
,
5
>
separators
{
QStringLiteral
(
"::"
),
QStringLiteral
(
"."
),
QStringLiteral
(
":"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment