code: Revert #836

The compiler will choose the optimal way automatically, and forcing std::move here actually results in two objects existing side by side, before being "moved" into one.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2022-08-29 10:43:33 +02:00
parent b9d8583d58
commit 4e41c5cf24
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ std::list<device> d3d11::enumerate_adapters()
adapters.push_back(dev);
}
return std::move(adapters);
return adapters;
}
std::shared_ptr<instance> d3d11::create(const device& target)

View file

@ -280,7 +280,7 @@ std::vector<AVPixelFormat> tools::get_software_formats(const AVPixelFormat* list
fmts.push_back(AV_PIX_FMT_NONE);
return std::move(fmts);
return fmts;
}
void tools::context_setup_from_obs(const video_output_info* voi, AVCodecContext* context)