summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-25 12:42:30 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-25 12:47:21 (GMT)
commit1cc4ed833f75bc363507bcb7db235bff16785d88 (patch)
tree8c7a32b17357343ce48a2874c2a207093fc57799 /src
parent93ba0035f4eadfaf7217d95f18a442d418a064b8 (diff)
downloadQt-1cc4ed833f75bc363507bcb7db235bff16785d88.zip
Qt-1cc4ed833f75bc363507bcb7db235bff16785d88.tar.gz
Qt-1cc4ed833f75bc363507bcb7db235bff16785d88.tar.bz2
Fix use of uninitialized memory in QLineEdit
Reviewed-by: Thierry
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qlinecontrol_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h
index 721d990..adea742 100644
--- a/src/gui/widgets/qlinecontrol_p.h
+++ b/src/gui/widgets/qlinecontrol_p.h
@@ -78,10 +78,10 @@ class Q_GUI_EXPORT QLineControl : public QObject
public:
QLineControl(const QString &txt = QString())
- : m_cursor(0), m_preeditCursor(0), m_layoutDirection(Qt::LeftToRight),
+ : m_cursor(0), m_preeditCursor(0), m_cursorWidth(0), m_layoutDirection(Qt::LeftToRight),
m_hideCursor(false), m_separator(0), m_readOnly(0),
m_dragEnabled(0), m_echoMode(0), m_textDirty(0), m_selDirty(0),
- m_validInput(1), m_blinkPeriod(0), m_blinkTimer(0), m_deleteAllTimer(0),
+ m_validInput(1), m_blinkStatus(0), m_blinkPeriod(0), m_blinkTimer(0), m_deleteAllTimer(0),
m_ascent(0), m_maxLength(32767), m_lastCursorPos(-1),
m_tripleClickTimer(0), m_maskData(0), m_modifiedState(0), m_undoState(0),
m_selstart(0), m_selend(0), m_passwordEchoEditing(false)
@@ -262,10 +262,10 @@ private:
uint m_textDirty : 1;
uint m_selDirty : 1;
uint m_validInput : 1;
+ uint m_blinkStatus : 1;
int m_blinkPeriod; // 0 for non-blinking cursor
int m_blinkTimer;
int m_deleteAllTimer;
- int m_blinkStatus;
int m_ascent;
int m_maxLength;
int m_lastCursorPos;