diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-11-28 09:06:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-28 14:25:10 +0100 |
commit | cb6c51f026cfe35c6dc42fed20dd6919795649c6 (patch) | |
tree | 9e4c0c6b460e369a585393c0ac04d3f9c441b49c /src | |
parent | a2d3b7c99165cb5c4be6f0dd83a967e1119cf732 (diff) |
Remove unused variable in font match() function.
Change-Id: I0752901556a44c3b7fb4440e3ba0ca88559c1fe2
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qfontdatabase.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 24288489c6..9ff23cd325 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -896,8 +896,6 @@ static int match(int script, const QFontDef &request, if (family_name.isEmpty()) load(test.family->name, script); - uint score_adjust = 0; - bool supported = (script == QChar::Script_Common); for (int ws = 1; !supported && ws < QFontDatabase::WritingSystemsCount; ++ws) { if (scriptForWritingSystem[ws] != script) @@ -923,7 +921,6 @@ static int match(int script, const QFontDef &request, QString(), styleKey, request.pixelSize, pitch, &test, force_encoding_id); } - newscore += score_adjust; if (newscore < score) { result = x; |