summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-12 02:12:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-13 09:13:37 +0200
commita3bedb7ae8f23476843e00380aba05002aa1e827 (patch)
tree0eb626a63ebb5d45c7e837def5cca433b96eba56 /comphelper
parente272761e8fca9eccbf6fd5737df2b1aee1730947 (diff)
use local statics for getUnoTunnelImplementationId
replace uses of double checked locking pattern and rtl::Static Change-Id: I479d9d94f652b4fb4c67388405823a5f4e2b6ed4 Reviewed-on: https://gerrit.libreoffice.org/38690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/accimplaccess.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index 9371384c1efc..96fdbd96f381 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -63,13 +63,11 @@ namespace comphelper
return m_pImpl->m_nForeignControlledStates;
}
- namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
-
-
const Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
{
- ::cppu::OImplementationId &rID = lcl_ImplId::get();
- return rID.getImplementationId();
+ static cppu::OImplementationId implID;
+
+ return implID.getImplementationId();
}