aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-27 15:37:38 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-27 15:37:38 +0100
commit120f390c7c732c9867efcaf352c29a9d2ddcf0ca (patch)
tree77cd9e37754d4e4166f462f35b5400c47261d2b5 /qtmips_gui
parentb7f2cec55f9a90032fc225fed0c1427faeadc879 (diff)
downloadqtmips-120f390c7c732c9867efcaf352c29a9d2ddcf0ca.tar.gz
qtmips-120f390c7c732c9867efcaf352c29a9d2ddcf0ca.tar.bz2
qtmips-120f390c7c732c9867efcaf352c29a9d2ddcf0ca.zip
Fix some uninitialized jumps
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/coreview/connection.cpp2
-rw-r--r--qtmips_gui/coreview/multiplexer.cpp2
-rw-r--r--qtmips_gui/statictable.cpp8
3 files changed, 11 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/connection.cpp b/qtmips_gui/coreview/connection.cpp
index f7271c7..140185f 100644
--- a/qtmips_gui/coreview/connection.cpp
+++ b/qtmips_gui/coreview/connection.cpp
@@ -5,6 +5,8 @@
using namespace coreview;
Connector::Connector(enum Axis ax) {
+ qx = 0;
+ qy = 0;
this->ax = ax;
}
diff --git a/qtmips_gui/coreview/multiplexer.cpp b/qtmips_gui/coreview/multiplexer.cpp
index b25e6d1..f314a6f 100644
--- a/qtmips_gui/coreview/multiplexer.cpp
+++ b/qtmips_gui/coreview/multiplexer.cpp
@@ -27,7 +27,7 @@ Multiplexer::~Multiplexer() {
delete con_out;
for (unsigned i = 0; i < size; i++)
delete con_in[i];
- delete con_in;
+ delete[] con_in;
}
#define C_HEIGHT (HEIGHT + (GAP * (size -1 )))
diff --git a/qtmips_gui/statictable.cpp b/qtmips_gui/statictable.cpp
index 829e71b..594476b 100644
--- a/qtmips_gui/statictable.cpp
+++ b/qtmips_gui/statictable.cpp
@@ -8,6 +8,14 @@ StaticTableLayout::StaticTableLayout(QWidget *parent, int margin, int horizontal
shspace = horizontal_small_spacing;
vspace = vertical_spacing;
setSizeConstraint(QLayout::SetMinAndMaxSize);
+
+ cch_do_layout.size = QSize(0, 0);
+ cch_do_layout.count = 0;
+ cch_heightForWidth.w = 0;
+ cch_heightForWidth.count = 0;
+ cch_heightForWidth.width = 0;
+ cch_minSize.count = 0;
+ cch_minSize.size = QSize(0, 0);
}
StaticTableLayout::~StaticTableLayout() {