Qt: Placate Coverity a bit

This commit is contained in:
Vicki Pfau 2025-03-07 23:03:43 -08:00
parent 2c71435c43
commit ae3a5988d0
2 changed files with 4 additions and 4 deletions

View File

@ -395,7 +395,7 @@ SaveConverter::AnnotatedSave::AnnotatedSave(mPlatform platform, std::shared_ptr<
: container(container) : container(container)
, platform(platform) , platform(platform)
, size(vf->size()) , size(vf->size())
, backing(vf) , backing(std::move(vf))
, endianness(endianness) , endianness(endianness)
{ {
} }
@ -405,7 +405,7 @@ SaveConverter::AnnotatedSave::AnnotatedSave(GBASavedataType type, std::shared_pt
: container(container) : container(container)
, platform(mPLATFORM_GBA) , platform(mPLATFORM_GBA)
, size(vf->size()) , size(vf->size())
, backing(vf) , backing(std::move(vf))
, endianness(endianness) , endianness(endianness)
, gba({type}) , gba({type})
{ {
@ -417,7 +417,7 @@ SaveConverter::AnnotatedSave::AnnotatedSave(GBMemoryBankControllerType type, std
: container(container) : container(container)
, platform(mPLATFORM_GB) , platform(mPLATFORM_GB)
, size(vf->size()) , size(vf->size())
, backing(vf) , backing(std::move(vf))
, endianness(endianness) , endianness(endianness)
, gb({type}) , gb({type})
{ {

View File

@ -1101,7 +1101,7 @@ void Window::reloadDisplayDriver() {
if (!proxy) { if (!proxy) {
proxy = std::make_shared<VideoProxy>(); proxy = std::make_shared<VideoProxy>();
} }
m_display->setVideoProxy(proxy); m_display->setVideoProxy(std::move(proxy));
#ifdef ENABLE_SCRIPTING #ifdef ENABLE_SCRIPTING
if (m_scripting) { if (m_scripting) {
m_scripting->setVideoBackend(m_display->videoBackend()); m_scripting->setVideoBackend(m_display->videoBackend());