summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/Title.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-18 00:35:50 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-18 00:36:10 +0200
commit0d8908b35999795ba1ffe2d3530aa9711918840a (patch)
tree92a84fad59387a092838d75398ed473c3784ad29 /chart2/source/model/main/Title.cxx
parent980dabdbc636d4a639b7227caf7c82fdc81b77c4 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part16
Change-Id: I78b3a0151397d4e69521e6b2451e93ea6e463376
Diffstat (limited to 'chart2/source/model/main/Title.cxx')
-rw-r--r--chart2/source/model/main/Title.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx
index 2e6b1b21091a..35ee2004e13f 100644
--- a/chart2/source/model/main/Title.cxx
+++ b/chart2/source/model/main/Title.cxx
@@ -71,42 +71,42 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "ParaAdjust",
PROP_TITLE_PARA_ADJUST,
- ::getCppuType( reinterpret_cast< ::com::sun::star::style::ParagraphAdjust * >(0)),
+ cppu::UnoType<com::sun::star::style::ParagraphAdjust>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ParaLastLineAdjust",
PROP_TITLE_PARA_LAST_LINE_ADJUST,
- ::getCppuType( reinterpret_cast< sal_Int16 * >(0)),
+ cppu::UnoType<sal_Int16>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ParaLeftMargin",
PROP_TITLE_PARA_LEFT_MARGIN,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ParaRightMargin",
PROP_TITLE_PARA_RIGHT_MARGIN,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ParaTopMargin",
PROP_TITLE_PARA_TOP_MARGIN,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
Property( "ParaBottomMargin",
PROP_TITLE_PARA_BOTTOM_MARGIN,
- ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
+ cppu::UnoType<sal_Int32>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
@@ -120,7 +120,7 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "TextRotation",
PROP_TITLE_TEXT_ROTATION,
- ::getCppuType( reinterpret_cast< const double * >(0)),
+ cppu::UnoType<double>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
@@ -133,14 +133,14 @@ void lcl_AddPropertiesToVector(
rOutProperties.push_back(
Property( "RelativePosition",
PROP_TITLE_REL_POS,
- ::getCppuType( reinterpret_cast< const chart2::RelativePosition * >(0)),
+ cppu::UnoType<chart2::RelativePosition>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
Property( "ReferencePageSize",
PROP_TITLE_REF_PAGE_SIZE,
- ::getCppuType( reinterpret_cast< const awt::Size * >(0)),
+ cppu::UnoType<awt::Size>::get(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
}