summaryrefslogtreecommitdiffstats
path: root/vbahelper/source/msforms/vbacontrols.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/msforms/vbacontrols.cxx')
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index 7e9ded29e2dd..2aa3daf86ccf 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -114,7 +114,7 @@ public:
// XElementAccess
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException)
{
- return awt::XControl::static_type(0);
+ return cppu::UnoType<awt::XControl>::get();
}
virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException)
@@ -498,7 +498,7 @@ void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex )
uno::Type
ScVbaControls::getElementType() throw (uno::RuntimeException)
{
- return ooo::vba::msforms::XControl::static_type(0);
+ return cppu::UnoType<ooo::vba::msforms::XControl>::get();
}
VBAHELPER_IMPL_XHELPERINTERFACE( ScVbaControls, "ooo.vba.msforms.Controls" )