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

@ -3105,6 +3105,8 @@ QAsmView::QAsmView(QWidget *parent)
ctxMenuAddr = -1;
mouseLeftBtnDown = false;
txtHlgtAnchorLine = -1;
txtHlgtAnchorChar = -1;
txtHlgtStartChar = -1;
txtHlgtStartLine = -1;
txtHlgtEndChar = -1;

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;