[contextualprocess] QLatin1String -> QString

As Kevin pointed out, there's an extra conversion involved here --
although with -O3 the difference boils away leaving only a call
to a from-ASCII helper or a from-Latin1 helper.

While here, coding-style.
This commit is contained in:
Adriaan de Groot 2018-06-14 14:50:47 +02:00
parent 96cb42414c
commit 011310091c

View File

@ -66,7 +66,7 @@ struct ContextualProcessBinding
void append( const QString& value, CalamaresUtils::CommandList* commands ) void append( const QString& value, CalamaresUtils::CommandList* commands )
{ {
checks.append( ValueCheck( value, commands ) ); checks.append( ValueCheck( value, commands ) );
if ( value == QLatin1Literal("*") ) if ( value == QString( "*" ) )
wildcard = commands; wildcard = commands;
} }