use Qt5-compatible writeString() impl
This commit is contained in:
@@ -150,8 +150,8 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeString(QByteArray &data, std::string value) {
|
void writeString(QByteArray &data, const std::string &value) {
|
||||||
data.append(value);
|
data.append(value.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void writePacketToSocket(QByteArray &data) {
|
void writePacketToSocket(QByteArray &data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user