Changed a lot of pointer references to const (it's more correct and

fixes a weird problem), fixed a problem with JSON to DBC, a few other
fixes
This commit is contained in:
Collin Kidder
2020-02-13 22:01:06 -05:00
parent 1a5d67d09e
commit d550fa79a0
18 changed files with 76 additions and 62 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ void ISOTP_InterpreterWindow::showDetailView()
msg = &messages[rowNum];
unsigned char *data = reinterpret_cast<unsigned char *>(msg->payload().data());
const unsigned char *data = reinterpret_cast<const unsigned char *>(msg->payload().constData());
int dataLen = msg->payload().length();
if (msg->reportedLength != dataLen)
@@ -266,7 +266,7 @@ void ISOTP_InterpreterWindow::newISOMessage(ISOTP_MESSAGE msg)
int rowNum;
QString tempString;
unsigned char *data = reinterpret_cast<unsigned char *>(msg.payload().data());
const unsigned char *data = reinterpret_cast<const unsigned char *>(msg.payload().constData());
int dataLen = msg.payload().length();
if ((msg.reportedLength != dataLen) && !ui->cbShowIncomplete->isChecked()) return;