summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ErrorBar.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-11 15:16:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-12 08:26:40 +0100
commita62c2a5fa5d5be465b0edab6adeb1fd16ace462f (patch)
tree47cf29b4b7a0ba3ce321ce628a6b0a6175d978d7 /chart2/source/tools/ErrorBar.cxx
parentcff72ec4bf87c6484be97d954966309ba7a5eb8a (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.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx
index 3e305b94506a..277fb866724b 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}
+ {OUString("ShowPositiveError"),0,getBooleanCppuType(), 0, 0},
+ {OUString("ShowNegativeError"),1,getBooleanCppuType(), 0, 0},
+ {OUString("PositiveError"),2,getCppuType((const double*)0),0,0},
+ {OUString("NegativeError"),3,getCppuType((const double*)0), 0, 0},
+ {OUString("PercentageError"),4,getCppuType((const double*)0), 0, 0},
+ {OUString("ErrorBarStyle"),5,getCppuType((sal_Int32*)0),0,0},
+ {OUString("ErrorBarRangePositive"),6,getCppuType((OUString*)0),0,0}, // read-only for export
+ {OUString("ErrorBarRangeNegative"),7,getCppuType((OUString*)0),0,0}, // read-only for export
+ {OUString("Weight"),8,getCppuType((const double*)0),0,0},
+ {OUString("LineStyle"),9,getCppuType((com::sun::star::drawing::LineStyle*)0),0,0},
+ {OUString("LineDash"),10,getCppuType((drawing::LineDash*)0),0,0},
+ {OUString("LineWidth"),11,getCppuType((sal_Int32*)0),0,0},
+ {OUString("LineColor"),12,getCppuType((com::sun::star::util::Color*)0),0,0},
+ {OUString("LineTransparence"),13,getCppuType((sal_Int16*)0),0,0},
+ {OUString("LineJoint"),14,getCppuType((com::sun::star::drawing::LineJoint*)0),0,0},
+ { OUString(), 0, css::uno::Type(), 0, 0 }
};
static SfxItemPropertySet aPropSet( aErrorBarPropertyMap_Impl );
return &aPropSet;