replace remaining "const QChar &" with "QChar"
QChar is actually a ushort and passing it via const-ref is suboptimal Change-Id: Ib806b90397de6a816142ed130a22c0fe10a85d79 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
7e6cd359af
commit
25f40b2de2
@ -58,7 +58,7 @@ QT_END_NAMESPACE
|
||||
|
||||
using namespace QQmlJS;
|
||||
|
||||
static int regExpFlagFromChar(const QChar &ch)
|
||||
static inline int regExpFlagFromChar(QChar ch)
|
||||
{
|
||||
switch (ch.unicode()) {
|
||||
case 'g': return Lexer::RegExp_Global;
|
||||
|
@ -4901,7 +4901,7 @@ void tst_QString::arg_fillChar()
|
||||
for (int i=0; i<replaceValues.count(); ++i) {
|
||||
const QVariant &var = replaceValues.at(i);
|
||||
const int width = widths.at(i);
|
||||
const QChar &fillChar = fillChars.at(i);
|
||||
const QChar fillChar = fillChars.at(i);
|
||||
switch (var.type()) {
|
||||
case QVariant::String: actual = actual.arg(var.toString(), width, fillChar); break;
|
||||
case QVariant::Int: actual = actual.arg(var.toInt(), width, base, fillChar); break;
|
||||
|
@ -1032,7 +1032,7 @@ void tst_QTextScriptEngine::linearB()
|
||||
}
|
||||
|
||||
#if defined(Q_WS_X11)
|
||||
static bool decomposedShaping( const QFont &f, const QChar &ch)
|
||||
static bool decomposedShaping(const QFont &f, QChar ch)
|
||||
{
|
||||
QString str = QString().append(ch);
|
||||
QTextLayout layout(str, f);
|
||||
|
Loading…
Reference in New Issue
Block a user