Fix uninitialized fields in HexdumpWidget and VisualNavbar

This commit is contained in:
Florian Märkl 2018-06-26 22:28:51 +02:00
parent 2d98943c13
commit 2293b608a8
2 changed files with 3 additions and 3 deletions

View File

@ -100,8 +100,8 @@ private:
void updateParseWindow(RVA start_address, int size);
void clearParseWindow();
int bufferLines;
int cols;
int bufferLines = 0;
int cols = 0;
QAction syncAction;
CutterSeekableWidget *seekable;

View File

@ -61,7 +61,7 @@ private:
QList<MappedSegment> mappedSegments;
// Used to check whether the width changed. If yes we need to re-initialize the scene (slow)
int previousWidth;
int previousWidth = -1;
void drawMetadata(QList<MappedSegmentMetadata> metadata,
RVA offset,
double x,