Use QSharedPointer::data to be compatible with Qt < 5.11
This commit is contained in:
parent
6f07ab433e
commit
e7f30b57e8
@ -300,7 +300,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
|
|||||||
|
|
||||||
auto bin = dev->peek(dev->size());
|
auto bin = dev->peek(dev->size());
|
||||||
auto payload = std::string(bin.data(), bin.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(
|
http::v2::client()->upload(
|
||||||
payload,
|
payload,
|
||||||
|
Loading…
Reference in New Issue
Block a user