summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-09-04 22:32:38 -0700
committerThiago Macieira <thiago.macieira@intel.com>2014-09-23 17:44:59 +0200
commit79ad2b3799188ef273f24631403e9fc42b6963ed (patch)
treeeeecd5647e7540ed1aaa7b6b9ea4d3cf51da4fee /src/gui/text
parent0048127c941e365d69837e9bdd4cf58dc7c085ae (diff)
Fix warning about sign change (ICC)
ICC doesn't like that you assign -1 to an unsigned variable. I could have used ~0 to mean the same thing, but actually initialization isn't necessary at all. error #68: integer conversion resulted in a change of sign Change-Id: I3e9116d7309f7a7ccd99b1adfa9bffaed1ff1c73 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qfontengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index 5f801c3bf4..4faa018a40 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -374,7 +374,7 @@ bool QFontEngine::supportsScript(QChar::Script script) const
hb_tag_t script_tag_1, script_tag_2;
hb_ot_tags_from_script(hb_qt_script_to_script(script), &script_tag_1, &script_tag_2);
- unsigned int script_index = -1;
+ unsigned int script_index;
ret = hb_ot_layout_table_find_script(face, HB_OT_TAG_GSUB, script_tag_1, &script_index);
if (!ret) {
ret = hb_ot_layout_table_find_script(face, HB_OT_TAG_GSUB, script_tag_2, &script_index);