Cleaned up a couple cppcheck warnings in Qt GUI.

This commit is contained in:
Matthew Budd 2020-12-07 22:34:05 -05:00
parent fbf8fe6eb5
commit accc476623
3 changed files with 14 additions and 5 deletions

View File

@ -3104,11 +3104,13 @@ QAsmView::QAsmView(QWidget *parent)
maxLineOffset = 0;
ctxMenuAddr = -1;
mouseLeftBtnDown = false;
txtHlgtStartChar = -1;
txtHlgtStartLine = -1;
txtHlgtEndChar = -1;
txtHlgtEndLine = -1;
mouseLeftBtnDown = false;
txtHlgtAnchorLine = -1;
txtHlgtAnchorChar = -1;
txtHlgtStartChar = -1;
txtHlgtStartLine = -1;
txtHlgtEndChar = -1;
txtHlgtEndLine = -1;
pcLinePlacement = 0;
pcLineOffset = 0;

View File

@ -38,6 +38,11 @@ class msgLogBuf_t
maxLines = MSG_LOG_MAX_LINES;
totalLines = 0;
head = tail = 0;
for (int i=0; i<MSG_LOG_MAX_LINES; i++)
{
fpOfsList[i] = 0;
}
}
~msgLogBuf_t(void)

View File

@ -1112,6 +1112,8 @@ QTraceLogView::QTraceLogView(QWidget *parent)
wheelPixelCounter = 0;
mouseLeftBtnDown = false;
txtHlgtAnchorLine = -1;
txtHlgtAnchorChar = -1;
txtHlgtStartChar = -1;
txtHlgtStartLine = -1;
txtHlgtEndChar = -1;