diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-09-05 15:24:35 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-07 06:23:00 +0200 |
commit | 23951b38d4d4e2134a0caca26d12963251fb8e92 (patch) | |
tree | 6bd51190472b8a8b10e2f868c34c822efefd539d /src/widgets/widgets | |
parent | 903903147924641a84e62432037b006c6bf541b7 (diff) |
Fix g++ compiler warnings.
Unused variables, unsigned comparison DWORD >= 0 is always
true, format string.
Change-Id: I9f0a20392e262b2542fb23ea4f513e4c4e354b68
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r-- | src/widgets/widgets/qwidgetlinecontrol.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/widgets/qwidgetlinecontrol.cpp b/src/widgets/widgets/qwidgetlinecontrol.cpp index ba7e2ddacf..7584d7da6b 100644 --- a/src/widgets/widgets/qwidgetlinecontrol.cpp +++ b/src/widgets/widgets/qwidgetlinecontrol.cpp @@ -730,7 +730,7 @@ void QWidgetLineControl::internalSetText(const QString &txt, int pos, bool edite m_modifiedState = m_undoState = 0; m_cursor = (pos < 0 || pos > m_text.length()) ? m_text.length() : pos; m_textDirty = (oldText != m_text); - bool changed = finishChange(-1, true, edited); + const bool changed = finishChange(-1, true, edited); #ifndef QT_NO_ACCESSIBILITY if (changed) { @@ -748,6 +748,8 @@ void QWidgetLineControl::internalSetText(const QString &txt, int pos, bool edite QAccessible::updateAccessibility(&event); } } +#else + Q_UNUSED(changed) #endif } |