summaryrefslogtreecommitdiff
path: root/editeng/source/uno/unopracc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-03 21:38:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-07 08:58:49 +0100
commitfd7b4908ead77c7f0fb8894cf78401468c5160a9 (patch)
tree12675a84af01c2c7737b9fa1f6e4bed30e979b3d /editeng/source/uno/unopracc.cxx
parent830aeb105e5ed34b1fb64a66bc2bc7051a18ff0a (diff)
use the standard template for this
Diffstat (limited to 'editeng/source/uno/unopracc.cxx')
-rw-r--r--editeng/source/uno/unopracc.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/uno/unopracc.cxx b/editeng/source/uno/unopracc.cxx
index 6a0ebeede6a0..088cdbbc3ff7 100644
--- a/editeng/source/uno/unopracc.cxx
+++ b/editeng/source/uno/unopracc.cxx
@@ -40,6 +40,7 @@
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/lang/XComponent.hpp>
#include <cppuhelper/typeprovider.hxx>
+#include <comphelper/servicehelper.hxx>
//------------------------------------------------------------------------
@@ -127,16 +128,15 @@ uno::Sequence< uno::Type > SAL_CALL SvxAccessibleTextPropertySet::getTypes() thr
return pTypeCollection->getTypes() ;
}
+namespace
+{
+ class theSvxAccessibleTextPropertySetImplementationId : public rtl::Static< UnoTunnelIdInit, theSvxAccessibleTextPropertySetImplementationId > {};
+}
+
uno::Sequence< sal_Int8 > SAL_CALL SvxAccessibleTextPropertySet::getImplementationId()
throw (uno::RuntimeException)
{
- static uno::Sequence< sal_Int8 > aId;
- if( aId.getLength() == 0 )
- {
- aId.realloc( 16 );
- rtl_createUuid( reinterpret_cast< sal_uInt8* > (aId.getArray()), 0, sal_True );
- }
- return aId;
+ return theSvxAccessibleTextPropertySetImplementationId::get().getSeq();
}
// XServiceInfo