Skip to content

Commit

Permalink
Fix unused variable warning.
Browse files Browse the repository at this point in the history
Change-Id: I5e10bc5e2d42bcbc641ebea8b9bb123479ea857a
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
  • Loading branch information
Andrew den Exter authored and Qt by Nokia committed Mar 20, 2012
1 parent b93b4a7 commit d38e9e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/quick/items/qquicktextinput.cpp
Expand Up @@ -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) {
Expand All @@ -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);
}


Expand Down

0 comments on commit d38e9e4

Please sign in to comment.