aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-03 18:00:56 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-03 18:00:56 -0700
commit197be9cfd0299edba57fe6fe1d7a7841ed0bb771 (patch)
tree8aee91bbb1d72304e414e9373bfbc65d3d5fbba1
parent5b50b806ec5954aa3822443969d22ea79faa07c5 (diff)
downloadPrismLauncher-197be9cfd0299edba57fe6fe1d7a7841ed0bb771.tar.gz
PrismLauncher-197be9cfd0299edba57fe6fe1d7a7841ed0bb771.tar.bz2
PrismLauncher-197be9cfd0299edba57fe6fe1d7a7841ed0bb771.zip
fix: remove fixed datastream version
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r--launcher/FileSystem.cpp3
-rw-r--r--launcher/filelink/FileLink.cpp2
2 files changed, 1 insertions, 4 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 869fbe36..bd985c5b 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -446,7 +446,6 @@ void create_link::runPrivileged(const QString& offset)
// construct block of data to send
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
- out.setVersion(QDataStream::Qt_5_0); // choose correct version better?
qint32 blocksize = quint32(sizeof(quint32));
for (auto link : m_links_to_make) {
@@ -469,7 +468,7 @@ void create_link::runPrivileged(const QString& offset)
QDataStream in;
quint32 blockSize = 0;
in.setDevice(clientConnection);
- in.setVersion(QDataStream::Qt_5_0);
+
qDebug() << "Reading path results from client";
qDebug() << "bytes available" << clientConnection->bytesAvailable();
diff --git a/launcher/filelink/FileLink.cpp b/launcher/filelink/FileLink.cpp
index ded46061..c9599b82 100644
--- a/launcher/filelink/FileLink.cpp
+++ b/launcher/filelink/FileLink.cpp
@@ -120,7 +120,6 @@ void FileLinkApp::joinServer(QString server)
blockSize = 0;
in.setDevice(&socket);
- in.setVersion(QDataStream::Qt_5_0);
connect(&socket, &QLocalSocket::connected, this, [&]() { qDebug() << "connected to server"; });
@@ -203,7 +202,6 @@ void FileLinkApp::sendResults()
// construct block of data to send
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
- out.setVersion(QDataStream::Qt_5_0);
qint32 blocksize = quint32(sizeof(quint32));
for (auto result : m_path_results) {