summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs/res_DataLabel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-03 12:03:14 +0200
committerNoel Grandin <noel@peralex.com>2015-12-03 13:57:23 +0200
commite6721d2d17f5f34dcac14c3379521bb7fb6b8c03 (patch)
treebba3964ac2a6dd225d8087aa01594ea717d2a359 /chart2/source/controller/dialogs/res_DataLabel.cxx
parentuse comphelper::containerToSequence() (diff)
downloadcore-e6721d2d17f5f34dcac14c3379521bb7fb6b8c03.tar.gz
core-e6721d2d17f5f34dcac14c3379521bb7fb6b8c03.zip
uno::Sequence->std::vector in SfxIntegerListItem
Change-Id: Icdbb361feea2ebee74f9d0a906bdd3c2882443e8
Diffstat (limited to 'chart2/source/controller/dialogs/res_DataLabel.cxx')
-rw-r--r--chart2/source/controller/dialogs/res_DataLabel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx
index d6db8f8dcedd..5447040b08a6 100644
--- a/chart2/source/controller/dialogs/res_DataLabel.cxx
+++ b/chart2/source/controller/dialogs/res_DataLabel.cxx
@@ -133,13 +133,13 @@ DataLabelResources::DataLabelResources(VclBuilderContainer* pWindow, vcl::Window
for( sal_Int32 nEnum=0; nEnum<m_pLB_LabelPlacement->GetEntryCount(); ++nEnum )
aPlacementToStringMap[nEnum] = m_pLB_LabelPlacement->GetEntry(static_cast<sal_uInt16>(nEnum));
- ::com::sun::star::uno::Sequence < sal_Int32 > aAvailabelPlacementList;
+ std::vector< sal_Int32 > aAvailabelPlacementList;
const SfxPoolItem *pPoolItem = nullptr;
if( rInAttrs.GetItemState(SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS, true, &pPoolItem) == SfxItemState::SET )
- aAvailabelPlacementList = static_cast<const SfxIntegerListItem*>(pPoolItem)->GetConstSequence();
+ aAvailabelPlacementList = static_cast<const SfxIntegerListItem*>(pPoolItem)->GetList();
m_pLB_LabelPlacement->Clear();
- for( sal_Int32 nN=0; nN<aAvailabelPlacementList.getLength(); ++nN )
+ for( size_t nN=0; nN<aAvailabelPlacementList.size(); ++nN )
{
sal_uInt16 nListBoxPos = static_cast<sal_uInt16>( nN );
sal_Int32 nPlacement = aAvailabelPlacementList[nN];