diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-05 15:23:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-07 08:56:50 +0100 |
commit | 8a962baff610ab0ba8adad42e54fda3524590952 (patch) | |
tree | da14e41c25ee4513182d9983433a3be8f40e790d /accessibility/source/extended/AccessibleGridControlHeader.cxx | |
parent | use standard pattern for this (diff) | |
download | core-8a962baff610ab0ba8adad42e54fda3524590952.tar.gz core-8a962baff610ab0ba8adad42e54fda3524590952.zip |
use standard pattern for this
Diffstat (limited to 'accessibility/source/extended/AccessibleGridControlHeader.cxx')
-rw-r--r-- | accessibility/source/extended/AccessibleGridControlHeader.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/accessibility/source/extended/AccessibleGridControlHeader.cxx b/accessibility/source/extended/AccessibleGridControlHeader.cxx index 464d5842163d..a46a3808f043 100644 --- a/accessibility/source/extended/AccessibleGridControlHeader.cxx +++ b/accessibility/source/extended/AccessibleGridControlHeader.cxx @@ -34,6 +34,7 @@ #include "accessibility/extended/AccessibleGridControlHeaderCell.hxx" #include "accessibility/extended/AccessibleGridControlTableCell.hxx" #include <svtools/accessibletable.hxx> +#include <comphelper/servicehelper.hxx> // ============================================================================ @@ -227,13 +228,15 @@ OUString SAL_CALL AccessibleGridControlHeader::getImplementationName() return OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.accessibility.AccessibleGridControlHeader" ) ); } +namespace +{ + class theAccessibleGridControlHeaderImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleGridControlHeaderImplementationId > {}; +} + Sequence< sal_Int8 > SAL_CALL AccessibleGridControlHeader::getImplementationId() throw ( uno::RuntimeException ) { - ::osl::MutexGuard aGuard( getOslGlobalMutex() ); - static Sequence< sal_Int8 > aId; - implCreateUuid( aId ); - return aId; + return theAccessibleGridControlHeaderImplementationId::get().getSeq(); } // internal virtual methods --------------------------------------------------- |