mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix pessimizing-move warning
Signed-off-by: Andrei Damian <andreidaamian@gmail.com>
This commit is contained in:
parent
a17a45c748
commit
ac54df366b
|
|
@ -118,7 +118,7 @@ auto ImgurUpload::Sink::finalize(QNetworkReply&) -> Task::State
|
|||
Net::NetRequest::Ptr ImgurUpload::make(ScreenShot::Ptr m_shot)
|
||||
{
|
||||
auto up = makeShared<ImgurUpload>(m_shot->m_file);
|
||||
up->m_url = std::move(BuildConfig.IMGUR_BASE_URL + "image");
|
||||
up->m_url = BuildConfig.IMGUR_BASE_URL + "image";
|
||||
up->m_sink.reset(new Sink(m_shot));
|
||||
up->addHeaderProxy(std::make_unique<Net::RawHeaderProxy>(QList<Net::HeaderPair>{
|
||||
{ "Authorization", QString("Client-ID %1").arg(BuildConfig.IMGUR_CLIENT_ID).toUtf8() }, { "Accept", "application/json" } }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue