summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/offacc/acceptor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 5dbecd0f1254..2c51a73c1199 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -117,10 +117,9 @@ void Acceptor::run()
// create the bridge. The remote end will have a reference to this bridge
// thus preventing the bridge from being disposed. When the remote end releases
// the bridge, it will be destructed.
- Reference< XBridge > rBridge = m_rBridgeFactory->createBridge(
- u""_ustr, m_aProtocol, rConnection, rInstanceProvider);
std::unique_lock g(m_aMutex);
- m_bridges.add(rBridge);
+ m_bridges.add(m_rBridgeFactory->createBridge(
+ u""_ustr, m_aProtocol, rConnection, rInstanceProvider));
} catch (const Exception&) {
TOOLS_WARN_EXCEPTION("desktop.offacc", "");
// connection failed...