diff options
Diffstat (limited to 'chart2/source/controller/sidebar/ChartErrorBarPanel.cxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartErrorBarPanel.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx b/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx index f845dfafaa40..401e7cfab122 100644 --- a/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx +++ b/chart2/source/controller/sidebar/ChartErrorBarPanel.cxx @@ -150,10 +150,10 @@ sal_Int32 getTypePos(const css::uno::Reference<css::frame::XModel>& xModel, sal_Int32 nApi = 0; aAny >>= nApi; - for (size_t i = 0; i < SAL_N_ELEMENTS(aErrorBarType); ++i) + for (ErrorBarTypeMap & i : aErrorBarType) { - if (aErrorBarType[i].nApi == nApi) - return aErrorBarType[i].nPos; + if (i.nApi == nApi) + return i.nPos; } return 0; @@ -169,10 +169,10 @@ void setTypePos(const css::uno::Reference<css::frame::XModel>& xModel, return; sal_Int32 nApi = 0; - for (size_t i = 0; i < SAL_N_ELEMENTS(aErrorBarType); ++i) + for (ErrorBarTypeMap & i : aErrorBarType) { - if (aErrorBarType[i].nPos == nPos) - nApi = aErrorBarType[i].nApi; + if (i.nPos == nPos) + nApi = i.nApi; } xPropSet->setPropertyValue("ErrorBarStyle", css::uno::makeAny(nApi)); |