Kaydet (Commit) 9d8184b3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Don't use pInsert after it has been moved

Regression introduced with 38ea2d0e "sw: replace
boost::ptr_vector with std::vector<std::unique_ptr>".

Change-Id: I15f556319693c4728812d5ffd5002d0eba58ae82
üst 5c977a9d
......@@ -497,7 +497,7 @@ bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc, vcl::Window* pPare
m_DataSourceParams.push_back(std::move(pInsert));
try
{
uno::Reference<lang::XComponent> xComponent(pInsert->xConnection, uno::UNO_QUERY);
uno::Reference<lang::XComponent> xComponent(m_DataSourceParams.back()->xConnection, uno::UNO_QUERY);
if(xComponent.is())
xComponent->addEventListener(pImpl->m_xDisposeListener.get());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment