Avoid QString::fromLatin1() in generated code

Because it allocates memory.
REVIEW: 124717
wilder
Sergio Martins 11 years ago
parent 4de3053788
commit 4d5a50a85b
  1. 2
      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") {

Loading…
Cancel
Save