From 4d5a50a85bec95e60f11d1ac271df643e472ecf5 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Wed, 12 Aug 2015 16:37:33 +0100 Subject: Avoid QString::fromLatin1() in generated code Because it allocates memory. REVIEW: 124717 --- src/kconfig_compiler/kconfig_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kconfig_compiler/kconfig_compiler.cpp') 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") { -- cgit v1.2.1