From accc476623b6296cfd932acbbb8d40b3e45b9b76 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Mon, 7 Dec 2020 22:34:05 -0500 Subject: [PATCH] Cleaned up a couple cppcheck warnings in Qt GUI. --- src/drivers/Qt/ConsoleDebugger.cpp | 12 +++++++----- src/drivers/Qt/MsgLogViewer.cpp | 5 +++++ src/drivers/Qt/TraceLogger.cpp | 2 ++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/drivers/Qt/ConsoleDebugger.cpp b/src/drivers/Qt/ConsoleDebugger.cpp index fbb266c5..4f5b7f02 100644 --- a/src/drivers/Qt/ConsoleDebugger.cpp +++ b/src/drivers/Qt/ConsoleDebugger.cpp @@ -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; diff --git a/src/drivers/Qt/MsgLogViewer.cpp b/src/drivers/Qt/MsgLogViewer.cpp index 3d29209a..dc2addad 100644 --- a/src/drivers/Qt/MsgLogViewer.cpp +++ b/src/drivers/Qt/MsgLogViewer.cpp @@ -38,6 +38,11 @@ class msgLogBuf_t maxLines = MSG_LOG_MAX_LINES; totalLines = 0; head = tail = 0; + + for (int i=0; i