diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-12 11:09:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-12 11:10:10 +0100 |
commit | 83e191e25da8a508a2dafad339c0ee58e97c5c8b (patch) | |
tree | 41ffadeda7fcf325b0d0bdd5764fe4bd7282319e /extensions | |
parent | 7bf2f528ef22f50aa167ba57f2e25d4452977060 (diff) |
Do not use C++-UNO internal static_type functions in client code
...use cppu::UnoType instead.
Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formcontroller.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/genericpropertyhandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 797542509d59..0cf7fd5bb1ac 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -175,7 +175,7 @@ namespace pcr aProps[1] = Property( PROPERTY_INTROSPECTEDOBJECT, OWN_PROPERTY_ID_INTROSPECTEDOBJECT, - XPropertySet::static_type(), + cppu::UnoType<XPropertySet>::get(), PropertyAttribute::TRANSIENT | PropertyAttribute::CONSTRAINED ); return new ::cppu::OPropertyArrayHelper( aProps ); diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index fbac84b0bed3..5d8d28aa2bb7 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -382,7 +382,7 @@ namespace pcr if ( !xIntrospectionAccess.is() ) throw RuntimeException("The introspection service could not handle the given component.", *this ); - m_xComponent = Reference< XPropertySet >( xIntrospectionAccess->queryAdapter( XPropertySet::static_type() ), UNO_QUERY_THROW ); + m_xComponent = Reference< XPropertySet >( xIntrospectionAccess->queryAdapter( cppu::UnoType<XPropertySet>::get() ), UNO_QUERY_THROW ); // now that we survived so far, remember m_xComponentIntrospectionAccess m_xComponentIntrospectionAccess = xIntrospectionAccess; m_xPropertyState = m_xPropertyState.query( m_xComponent ); |