cid#1555404 silence Different smart pointers managing same raw pointer

Change-Id: I6de83a2209129745667e0d3f3768e87a226252e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170320
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2024-07-10 17:02:14 +01:00
parent 0abe0f62b9
commit 3aac0f9b37

View File

@@ -1090,9 +1090,8 @@ void XMLFilterSettingsDialog::initFilterList()
}
// add entry to internal container and to ui filter list box
maFilterVector.push_back( std::unique_ptr<filter_info_impl>(pTempFilter.get()) );
addFilterEntry( pTempFilter.release() );
maFilterVector.push_back(std::move(pTempFilter));
addFilterEntry(maFilterVector.back().get());
pTempFilter.reset( new filter_info_impl );
}