From e7f30b57e8bb00c201fb413e2e3754246546137e Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 11 Jul 2018 16:49:09 +0300 Subject: [PATCH] Use QSharedPointer::data to be compatible with Qt < 5.11 --- src/ChatPage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatPage.cc b/src/ChatPage.cc index 23469da5..29747fbe 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -300,7 +300,7 @@ ChatPage::ChatPage(QSharedPointer userSettings, QWidget *parent) auto bin = dev->peek(dev->size()); auto payload = std::string(bin.data(), bin.size()); - auto dimensions = QImageReader(dev.get()).size(); + auto dimensions = QImageReader(dev.data()).size(); http::v2::client()->upload( payload,