summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-01 12:17:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-01 15:21:55 +0100
commitbbf267835f5619ba4d65e12e49327ef11300d182 (patch)
treeb7c55fd6be58b6f322a19243a514660835db3350 /comphelper
parenta5ef12f38f1873e843fa98b20ce83fc7fa0311ef (diff)
overly static
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/property/propstate.cxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx
index b58bdb6d0283..ec621cb43833 100644
--- a/comphelper/source/property/propstate.cxx
+++ b/comphelper/source/property/propstate.cxx
@@ -68,18 +68,14 @@ namespace comphelper
//---------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> OPropertyStateHelper::getTypes() throw( ::com::sun::star::uno::RuntimeException)
{
- static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> aTypes;
- if (!aTypes.getLength())
- {
- aTypes.realloc(4);
- ::com::sun::star::uno::Type* pTypes = aTypes.getArray();
- // base class types
- pTypes[0] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>*)NULL);
- pTypes[1] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet>*)NULL);
- pTypes[2] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet>*)NULL);
- // my own type
- pTypes[3] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState>*)NULL);
- }
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> aTypes(4);
+ ::com::sun::star::uno::Type* pTypes = aTypes.getArray();
+ // base class types
+ pTypes[0] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>*)NULL);
+ pTypes[1] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet>*)NULL);
+ pTypes[2] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet>*)NULL);
+ // my own type
+ pTypes[3] = getCppuType(( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState>*)NULL);
return aTypes;
}