Remove unused variable in font match() function.
Change-Id: I0752901556a44c3b7fb4440e3ba0ca88559c1fe2 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
a2d3b7c991
commit
cb6c51f026
@ -896,8 +896,6 @@ static int match(int script, const QFontDef &request,
|
|||||||
if (family_name.isEmpty())
|
if (family_name.isEmpty())
|
||||||
load(test.family->name, script);
|
load(test.family->name, script);
|
||||||
|
|
||||||
uint score_adjust = 0;
|
|
||||||
|
|
||||||
bool supported = (script == QChar::Script_Common);
|
bool supported = (script == QChar::Script_Common);
|
||||||
for (int ws = 1; !supported && ws < QFontDatabase::WritingSystemsCount; ++ws) {
|
for (int ws = 1; !supported && ws < QFontDatabase::WritingSystemsCount; ++ws) {
|
||||||
if (scriptForWritingSystem[ws] != script)
|
if (scriptForWritingSystem[ws] != script)
|
||||||
@ -923,7 +921,6 @@ static int match(int script, const QFontDef &request,
|
|||||||
QString(), styleKey, request.pixelSize,
|
QString(), styleKey, request.pixelSize,
|
||||||
pitch, &test, force_encoding_id);
|
pitch, &test, force_encoding_id);
|
||||||
}
|
}
|
||||||
newscore += score_adjust;
|
|
||||||
|
|
||||||
if (newscore < score) {
|
if (newscore < score) {
|
||||||
result = x;
|
result = x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user