Commit d38e9e41 authored by Andrew den Exter's avatar Andrew den Exter Committed by Qt by Nokia

Fix unused variable warning.

Change-Id: I5e10bc5e2d42bcbc641ebea8b9bb123479ea857a
Reviewed-by: 's avatarYann Bodson <yann.bodson@nokia.com>
parent b93b4a74
......@@ -3246,7 +3246,6 @@ bool QQuickTextInputPrivate::finishChange(int validateFromState, bool update, bo
*/
void QQuickTextInputPrivate::internalSetText(const QString &txt, int pos, bool edited)
{
Q_Q(QQuickTextInput);
internalDeselect();
QString oldText = m_text;
if (m_maskData) {
......@@ -3260,8 +3259,7 @@ void QQuickTextInputPrivate::internalSetText(const QString &txt, int pos, bool e
m_cursor = (pos < 0 || pos > m_text.length()) ? m_text.length() : pos;
m_textDirty = (oldText != m_text);
bool changed = finishChange(-1, true, edited);
Q_UNUSED(changed)
finishChange(-1, true, edited);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment