Updates to support Qt v5.13

Replacement of deprecated Qt functions and member functions.
This commit is contained in:
Bill Somerville
2019-07-08 01:37:04 +01:00
parent 0c49f6f872
commit 01aaa852e3
7 changed files with 13 additions and 13 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include "HRDTransceiver.hpp"
#include <algorithm>
#include <QHostAddress>
#include <QByteArray>
#include <QRegExp>
@@ -36,7 +37,7 @@ struct HRDMessage
HRDMessage * storage (reinterpret_cast<HRDMessage *> (new char[size]));
storage->size_ = size ;
ushort const * pl (payload.utf16 ());
qCopy (pl, pl + payload.size () + 1, storage->payload_); // copy terminator too
std::copy (pl, pl + payload.size () + 1, storage->payload_); // copy terminator too
storage->magic_1_ = magic_1_value_;
storage->magic_2_ = magic_2_value_;
storage->checksum_ = 0;