diff options
author | Sergio Martins <iamsergio@gmail.com> | 2015-08-12 16:37:33 +0100 |
---|---|---|
committer | Sergio Martins <iamsergio@gmail.com> | 2015-08-18 22:46:00 +0100 |
commit | 4d5a50a85bec95e60f11d1ac271df643e472ecf5 (patch) | |
tree | d6d8e3c3728d77f326819c627921d2760ebd9f92 /src | |
parent | 4de3053788974c1f7b7b4926f006e29c7a3b250d (diff) | |
download | kconfig-4d5a50a85bec95e60f11d1ac271df643e472ecf5.tar.gz kconfig-4d5a50a85bec95e60f11d1ac271df643e472ecf5.tar.bz2 |
Avoid QString::fromLatin1() in generated code
Because it allocates memory.
REVIEW: 124717
Diffstat (limited to 'src')
-rw-r--r-- | src/kconfig_compiler/kconfig_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp index fc3571c0..5c515f43 100644 --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -1434,7 +1434,7 @@ QString memberMutatorBody(CfgEntry *e, const CfgConfig &cfg) if (hasBody) { out << "v != " << varExpression << " && "; } - out << "!" << This << "isImmutable( QString::fromLatin1( \""; + out << "!" << This << "isImmutable( QStringLiteral( \""; if (!e->param().isEmpty()) { out << e->paramName().replace("$(" + e->param() + ")", "%1") << "\" ).arg( "; if (e->paramType() == "Enum") { |