Use QSharedPointer::data to be compatible with Qt < 5.11

This commit is contained in:
Konstantinos Sideris 2018-07-11 16:49:09 +03:00
parent 6f07ab433e
commit e7f30b57e8

View file

@ -300,7 +300,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> 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,