diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:16:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-11 15:16:51 +0100 |
commit | 90f91088d238469b4a2262c91de3117ba40f5bde (patch) | |
tree | bad912690be028b4242744eed6755b36bb1bcefa /chart2/source/tools/ErrorBar.cxx | |
parent | 2fa2d39bf3eb2f216e13f6dd2c6c5c35fd19627c (diff) |
Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry. And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it. Plus some const clean-up.
Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
Diffstat (limited to 'chart2/source/tools/ErrorBar.cxx')
-rw-r--r-- | chart2/source/tools/ErrorBar.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx index 3e305b94506a..24eb6d9c78d6 100644 --- a/chart2/source/tools/ErrorBar.cxx +++ b/chart2/source/tools/ErrorBar.cxx @@ -55,22 +55,22 @@ const SfxItemPropertySet* GetErrorBarPropertySet() { static const SfxItemPropertyMapEntry aErrorBarPropertyMap_Impl[] = { - {MAP_CHAR_LEN("ShowPositiveError"),0,&getBooleanCppuType(), 0, 0}, - {MAP_CHAR_LEN("ShowNegativeError"),1,&getBooleanCppuType(), 0, 0}, - {MAP_CHAR_LEN("PositiveError"),2,&getCppuType((const double*)0),0,0}, - {MAP_CHAR_LEN("NegativeError"),3,&getCppuType((const double*)0), 0, 0}, - {MAP_CHAR_LEN("PercentageError"),4,&getCppuType((const double*)0), 0, 0}, - {MAP_CHAR_LEN("ErrorBarStyle"),5,&getCppuType((sal_Int32*)0),0,0}, - {MAP_CHAR_LEN("ErrorBarRangePositive"),6,&getCppuType((OUString*)0),0,0}, // read-only for export - {MAP_CHAR_LEN("ErrorBarRangeNegative"),7,&getCppuType((OUString*)0),0,0}, // read-only for export - {MAP_CHAR_LEN("Weight"),8,&getCppuType((const double*)0),0,0}, - {MAP_CHAR_LEN("LineStyle"),9,&getCppuType((com::sun::star::drawing::LineStyle*)0),0,0}, - {MAP_CHAR_LEN("LineDash"),10,&getCppuType((drawing::LineDash*)0),0,0}, - {MAP_CHAR_LEN("LineWidth"),11,&getCppuType((sal_Int32*)0),0,0}, - {MAP_CHAR_LEN("LineColor"),12,&getCppuType((com::sun::star::util::Color*)0),0,0}, - {MAP_CHAR_LEN("LineTransparence"),13,&getCppuType((sal_Int16*)0),0,0}, - {MAP_CHAR_LEN("LineJoint"),14,&getCppuType((com::sun::star::drawing::LineJoint*)0),0,0}, - {0,0,0,0,0,0} + {"ShowPositiveError",0,getBooleanCppuType(), 0, 0}, + {"ShowNegativeError",1,getBooleanCppuType(), 0, 0}, + {"PositiveError",2,getCppuType((const double*)0),0,0}, + {"NegativeError",3,getCppuType((const double*)0), 0, 0}, + {"PercentageError",4,getCppuType((const double*)0), 0, 0}, + {"ErrorBarStyle",5,getCppuType((sal_Int32*)0),0,0}, + {"ErrorBarRangePositive",6,getCppuType((OUString*)0),0,0}, // read-only for export + {"ErrorBarRangeNegative",7,getCppuType((OUString*)0),0,0}, // read-only for export + {"Weight",8,getCppuType((const double*)0),0,0}, + {"LineStyle",9,getCppuType((com::sun::star::drawing::LineStyle*)0),0,0}, + {"LineDash",10,getCppuType((drawing::LineDash*)0),0,0}, + {"LineWidth",11,getCppuType((sal_Int32*)0),0,0}, + {"LineColor",12,getCppuType((com::sun::star::util::Color*)0),0,0}, + {"LineTransparence",13,getCppuType((sal_Int16*)0),0,0}, + {"LineJoint",14,getCppuType((com::sun::star::drawing::LineJoint*)0),0,0}, + {} }; static SfxItemPropertySet aPropSet( aErrorBarPropertyMap_Impl ); return &aPropSet; |