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
@@ -6,7 +6,7 @@
SnifferItem::SnifferItem(const CANFrame& pFrame, quint32 seq):
mID(pFrame.frameId())
{
unsigned char *data = reinterpret_cast<unsigned char *>(pFrame.payload().data());
const unsigned char *data = reinterpret_cast<const unsigned char *>(pFrame.payload().constData());
int dataLen = pFrame.payload().length();
for (int i = 0; i < 0; i++) {
@@ -117,7 +117,7 @@ void SnifferItem::update(const CANFrame& pFrame, quint32 timeSeq, bool mute)
mLastTime = mCurrentTime;
mCurrSeqVal = timeSeq;
unsigned char *data = reinterpret_cast<unsigned char *>(pFrame.payload().data());
const unsigned char *data = reinterpret_cast<const unsigned char *>(pFrame.payload().constData());
int dataLen = pFrame.payload().length();
/* copy new value */