diff options
author | Tobias Markmann <tm@ayena.de> | 2014-10-31 12:30:40 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-10-31 15:21:27 (GMT) |
commit | a48fd35709f0ae6e9d6a58ad0c7f0ff4bc7e9f8d (patch) | |
tree | b2525cf7b9d0ad05a216eda3a6d0f826a054dc68 /Swift | |
parent | b2c12f79f9c0c05a1dc9f9603d6d2aa258647391 (diff) | |
download | swift-a48fd35709f0ae6e9d6a58ad0c7f0ff4bc7e9f8d.zip swift-a48fd35709f0ae6e9d6a58ad0c7f0ff4bc7e9f8d.tar.bz2 |
Fix uninitialized members in whiteboard's GView.
Test-Information:
Still builds with clang (3.6.0) on OS X (10.9.5).
Change-Id: I857b66b08d684d08ed8e0c99fb7a981e6842c6a8
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Swift/QtUI/Whiteboard/GView.cpp b/Swift/QtUI/Whiteboard/GView.cpp index d725cbb..f92322a 100644 --- a/Swift/QtUI/Whiteboard/GView.cpp +++ b/Swift/QtUI/Whiteboard/GView.cpp @@ -8,10 +8,7 @@ #include <QtSwiftUtil.h> namespace Swift { - GView::GView(QGraphicsScene* scene, QWidget* parent) : QGraphicsView(scene, parent), brush(QColor(Qt::white)), defaultBrush(QColor(Qt::white)) { - selectionRect = 0; - lastItem = 0; - zValue = 0; + GView::GView(QGraphicsScene* scene, QWidget* parent) : QGraphicsView(scene, parent), zValue(0), mousePressed(false), brush(QColor(Qt::white)), defaultBrush(QColor(Qt::white)), mode(GView::Select), lastItem(NULL), selectionRect(NULL), textDialog(NULL) { } void GView::setLineWidth(int i) { |