summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-03-25 11:46:14 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-03-25 11:46:14 (GMT)
commitd2293aaf51740e579ca4d77b702fbfb983b8f009 (patch)
tree9b55e98d9b1e7b62b5a93ed3ab83fb5bc6aa1a30 /src/gui/inputmethod
parent823788031ec0f929d74573d296145c7bd48f6fd6 (diff)
downloadQt-d2293aaf51740e579ca4d77b702fbfb983b8f009.zip
Qt-d2293aaf51740e579ca4d77b702fbfb983b8f009.tar.gz
Qt-d2293aaf51740e579ca4d77b702fbfb983b8f009.tar.bz2
Remove two compilation warnings for ARM
Initialize the rootItem variable to avoid compilation warning. Reviewed-by: Guoqing Zhang
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index 41abe95..2c70ade 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -416,7 +416,8 @@ void QCoeFepInputContext::resetSplitViewWidget(bool keepInputWidget)
int index = gv->scene()->focusItem()->toGraphicsObject()->metaObject()->indexOfSignal(signal.right(signal.length() - 1));
if (index != -1)
disconnect(gv->scene()->focusItem()->toGraphicsObject(), SIGNAL(cursorPositionChanged()), this, SLOT(translateInputWidget()));
- QGraphicsItem *rootItem;
+
+ QGraphicsItem *rootItem = 0;
foreach (QGraphicsItem *item, gv->scene()->items()) {
if (!item->parentItem()) {
rootItem = item;
@@ -828,7 +829,7 @@ void QCoeFepInputContext::translateInputWidget()
return;
// Fetch root item (i.e. graphicsitem with no parent)
- QGraphicsItem *rootItem;
+ QGraphicsItem *rootItem = 0;
foreach (QGraphicsItem *item, gv->scene()->items()) {
if (!item->parentItem()) {
rootItem = item;