diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-11 15:25:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-17 07:08:23 +0200 |
commit | 9685276b975aa37d16ba81dd8294b5717e3823df (patch) | |
tree | 58a0b916218bf99ea5b0c6c77d3c913f317b512a /include/cppuhelper/implbase5.hxx | |
parent | Use SAL_INFO (diff) | |
download | core-9685276b975aa37d16ba81dd8294b5717e3823df.tar.gz core-9685276b975aa37d16ba81dd8294b5717e3823df.zip |
cppu and cppuhelper: loplugin: cstylecast
Add a macro in include/cppuhelper/implbase_ex.hxx
to make initialising the type_entry classes a little less verbose.
Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897
Diffstat (limited to 'include/cppuhelper/implbase5.hxx')
-rw-r--r-- | include/cppuhelper/implbase5.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/cppuhelper/implbase5.hxx b/include/cppuhelper/implbase5.hxx index 91ba45abb64b..89aa381560f8 100644 --- a/include/cppuhelper/implbase5.hxx +++ b/include/cppuhelper/implbase5.hxx @@ -45,12 +45,12 @@ namespace cppu 5 +1, sal_False, sal_False, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { - { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 }, - { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 }, - { { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 }, - { { Ifc4::static_type }, ((sal_IntPtr)(Ifc4 *) (Impl *) 16) - 16 }, - { { Ifc5::static_type }, ((sal_IntPtr)(Ifc5 *) (Impl *) 16) - 16 }, - { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 } + CPPUHELPER_DETAIL_TYPEENTRY(Ifc1), + CPPUHELPER_DETAIL_TYPEENTRY(Ifc2), + CPPUHELPER_DETAIL_TYPEENTRY(Ifc3), + CPPUHELPER_DETAIL_TYPEENTRY(Ifc4), + CPPUHELPER_DETAIL_TYPEENTRY(Ifc5), + CPPUHELPER_DETAIL_TYPEENTRY(com::sun::star::lang::XTypeProvider) } }; return reinterpret_cast< class_data * >(&s_cd); |