QtCore/qmake: drop some unneeded QChar -> QString conversions
Change-Id: Id2fb5089b0ec51073efb846b59ecc63942cfb60d Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
c8cd9f1b9a
commit
48663eafd3
@ -166,7 +166,7 @@ ProjectGenerator::init()
|
||||
QString nd = newdir;
|
||||
if(nd == ".")
|
||||
nd = "";
|
||||
else if(!nd.isEmpty() && !nd.endsWith(QString(QChar(QDir::separator()))))
|
||||
else if (!nd.isEmpty() && !nd.endsWith(QDir::separator()))
|
||||
nd += QDir::separator();
|
||||
nd += profiles[i];
|
||||
fileFixify(nd);
|
||||
|
@ -413,7 +413,7 @@ static bool convert(const QVariant::Private *d, int t, void *result, bool *ok)
|
||||
QString *str = static_cast<QString *>(result);
|
||||
switch (d->type) {
|
||||
case QVariant::Char:
|
||||
*str = QString(*v_cast<QChar>(d));
|
||||
*str = *v_cast<QChar>(d);
|
||||
break;
|
||||
case QMetaType::Char:
|
||||
case QMetaType::SChar:
|
||||
|
Loading…
x
Reference in New Issue
Block a user