summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-09-02 14:09:17 (GMT)
committeraxis <qt-info@nokia.com>2010-09-02 14:15:33 (GMT)
commit5afd02d13fca42d556e03579a5ed4eb53d2eb172 (patch)
treeec480da65df7cc045d545f60cbac2c729b3bd495 /src/gui/inputmethod
parentefe67ac8c1c59fd4cf8c793b549169f4e2926ac8 (diff)
downloadQt-5afd02d13fca42d556e03579a5ed4eb53d2eb172.zip
Qt-5afd02d13fca42d556e03579a5ed4eb53d2eb172.tar.gz
Qt-5afd02d13fca42d556e03579a5ed4eb53d2eb172.tar.bz2
Fixed a few warnings.
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index abcec32..b08b9a9 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -664,7 +664,7 @@ void QCoeFepInputContext::UpdateFepInlineTextL(const TDesC& aNewInlineText,
QInputMethodEvent event(newPreeditString, attributes);
if (newPreeditString.isEmpty() && m_preeditString.isEmpty()) {
// In Symbian world this means "erase last character".
- event.setCommitString("", -1, 1);
+ event.setCommitString(QLatin1String(""), -1, 1);
}
m_preeditString = newPreeditString;
sendEvent(event);
@@ -836,8 +836,6 @@ void QCoeFepInputContext::DoCommitFepInlineEditL()
void QCoeFepInputContext::commitCurrentString(bool cancelFepTransaction)
{
- int longPress = 0;
-
QList<QInputMethodEvent::Attribute> attributes;
QInputMethodEvent event(QLatin1String(""), attributes);
event.setCommitString(m_preeditString, 0, 0);