summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-31 11:24:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-31 11:24:17 +0200
commit9d8184b34e9e4c53f93e4d44ac53590e9231c520 (patch)
tree09939538e4012ce8f1ca5f64e0baee70f374ed5c /sw
parent5c977a9ddff3c221c098a57855ede7c0ef4fe31f (diff)
Don't use pInsert after it has been moved
Regression introduced with 38ea2d0ecc1d59844f9371ae6da7980c4e3a9e10 "sw: replace boost::ptr_vector with std::vector<std::unique_ptr>". Change-Id: I15f556319693c4728812d5ffd5002d0eba58ae82
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 74c2a7259752..ea26ebcf74d4 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -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());
}