projects
/
profile
/
ivi
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93b4a7
)
Fix unused variable warning.
author
Andrew den Exter
<andrew.den-exter@nokia.com>
Tue, 20 Mar 2012 03:48:32 +0000
(13:48 +1000)
committer
Qt by Nokia
<qt-info@nokia.com>
Tue, 20 Mar 2012 05:49:30 +0000
(06:49 +0100)
Change-Id: I5e10bc5e2d42bcbc641ebea8b9bb123479ea857a
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextinput.cpp
patch
|
blob
|
history
diff --git
a/src/quick/items/qquicktextinput.cpp
b/src/quick/items/qquicktextinput.cpp
index
e5f42d4
..
cff9c58
100644
(file)
--- a/
src/quick/items/qquicktextinput.cpp
+++ b/
src/quick/items/qquicktextinput.cpp
@@
-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);
}