1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix compiling qTox against static Qt 5.5

This commit is contained in:
Zetok Zalbavar 2015-08-17 00:40:26 +01:00
parent 74b771373d
commit ff4ebe6bfe
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -31,17 +31,17 @@ using namespace std;
const char SettingsSerializer::magic[] = {0x51,0x54,0x4F,0x58};
QDataStream& operator<<(QDataStream& dataStream, const SettingsSerializer::RecordTag& tag)
inline QDataStream& operator<<(QDataStream& dataStream, const SettingsSerializer::RecordTag& tag)
{
return dataStream << static_cast<uint8_t>(tag);
}
QDataStream& operator<<(QDataStream& dataStream, const QString& str)
inline QDataStream& operator<<(QDataStream& dataStream, const QString& str)
{
return dataStream << str.toUtf8();
}
QDataStream& operator<<(QDataStream& dataStream, const QByteArray& data)
inline QDataStream& operator<<(QDataStream& dataStream, const QByteArray& data)
{
QByteArray size = vuintToData(data.size());
dataStream.writeRawData(size.data(), size.size());
@ -54,7 +54,7 @@ QDataStream& operator>>(QDataStream& dataStream, SettingsSerializer::RecordTag&
return dataStream.operator >>((uint8_t&)tag);
}
QDataStream& operator>>(QDataStream& dataStream, QByteArray& data)
inline QDataStream& operator>>(QDataStream& dataStream, QByteArray& data)
{
unsigned char num3;
size_t num = 0;