summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-01 23:59:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-01 23:59:50 +0100
commit0402152ad484ef1498dbfff847111a0021ef8739 (patch)
tree478bf459c87566a1f2d19c22d447dff6457011d6
parent6e8e30fe08e367f13d241d88c5915a6017fd95f7 (diff)
use standard template here
-rw-r--r--comphelper/source/property/genericpropertyset.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx
index 886530276abf..008646001331 100644
--- a/comphelper/source/property/genericpropertyset.cxx
+++ b/comphelper/source/property/genericpropertyset.cxx
@@ -37,6 +37,7 @@
#include <comphelper/genericpropertyset.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <comphelper/stl_types.hxx>
+#include <comphelper/servicehelper.hxx>
#include <osl/mutex.hxx>
#include <rtl/uuid.h>
@@ -251,18 +252,15 @@ uno::Sequence< uno::Type > SAL_CALL GenericPropertySet::getTypes()
return aTypes;
}
+namespace
+{
+ class theGenericPropertySetImplmentationId : public rtl::Static< UnoTunnelIdInit, theGenericPropertySetImplmentationId > {};
+}
+
uno::Sequence< sal_Int8 > SAL_CALL GenericPropertySet::getImplementationId()
throw (uno::RuntimeException)
{
- MutexGuard aGuard( maMutex );
-
- static uno::Sequence< sal_Int8 > aId;
- if( aId.getLength() == 0 )
- {
- aId.realloc( 16 );
- rtl_createUuid( (sal_uInt8 *)aId.getArray(), 0, sal_True );
- }
- return aId;
+ return theGenericPropertySetImplmentationId::get().getSeq();
}
// XServiceInfo