diff options
Diffstat (limited to 'connectivity/source/drivers/ado/AKey.cxx')
-rw-r--r-- | connectivity/source/drivers/ado/AKey.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/connectivity/source/drivers/ado/AKey.cxx b/connectivity/source/drivers/ado/AKey.cxx index 2df0c8775a80..f8797f779a85 100644 --- a/connectivity/source/drivers/ado/AKey.cxx +++ b/connectivity/source/drivers/ado/AKey.cxx @@ -69,17 +69,9 @@ void OAdoKey::refreshColumns() Sequence< sal_Int8 > OAdoKey::getUnoTunnelImplementationId() { - static ::cppu::OImplementationId * pId = nullptr; - if (! pId) - { - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); - if (! pId) - { - static ::cppu::OImplementationId aId; - pId = &aId; - } - } - return pId->getImplementationId(); + static ::cppu::OImplementationId implId; + + return implId.getImplementationId(); } // css::lang::XUnoTunnel |