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 updateParseWindow(RVA start_address, int size);
void clearParseWindow(); void clearParseWindow();
int bufferLines; int bufferLines = 0;
int cols; int cols = 0;
QAction syncAction; QAction syncAction;
CutterSeekableWidget *seekable; CutterSeekableWidget *seekable;

View File

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