From d203948fdb780c7af5777fcc26ad88bac1bd714e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 Jun 2015 13:51:56 +0200 Subject: convert 'it.begin() == it.end()' to 'it.empty()' Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145 Reviewed-on: https://gerrit.libreoffice.org/16212 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- chart2/source/controller/dialogs/ChartTypeDialogController.cxx | 2 +- chart2/source/view/charttypes/AreaChart.cxx | 2 +- chart2/source/view/charttypes/BarChart.cxx | 2 +- chart2/source/view/charttypes/CandleStickChart.cxx | 2 +- chart2/source/view/charttypes/NetChart.cxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx index f7f5fcc9ecb9..a039467d1ddb 100644 --- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx +++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx @@ -241,7 +241,7 @@ void ChartTypeDialogController::adjustParameterToMainType( ChartTypeParameter& r } if(!bFoundSomeMatch) { - if(rMap.begin()!=rMap.end()) + if(!rMap.empty()) rParameter = (*rMap.begin()).second; else rParameter = ChartTypeParameter(); diff --git a/chart2/source/view/charttypes/AreaChart.cxx b/chart2/source/view/charttypes/AreaChart.cxx index 7763f2cfe9e9..0a9e7e7673fe 100644 --- a/chart2/source/view/charttypes/AreaChart.cxx +++ b/chart2/source/view/charttypes/AreaChart.cxx @@ -644,7 +644,7 @@ struct FormerPoint void AreaChart::createShapes() { - if( m_aZSlots.begin() == m_aZSlots.end() ) //no series + if( m_aZSlots.empty() ) //no series return; if( m_nDimension == 2 && ( m_bArea || !m_bCategoryXAxis ) ) diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 6184d01e2470..9ad2ee4fb971 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -413,7 +413,7 @@ void BarChart::adaptOverlapAndGapwidthForGroupBarsPerAxis() void BarChart::createShapes() { - if( m_aZSlots.begin() == m_aZSlots.end() ) //no series + if( m_aZSlots.empty() ) //no series return; OSL_ENSURE(m_pShapeFactory&&m_xLogicTarget.is()&&m_xFinalTarget.is(),"BarChart is not proper initialized"); diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx index c3621ceaf1cf..8c974fbfc901 100644 --- a/chart2/source/view/charttypes/CandleStickChart.cxx +++ b/chart2/source/view/charttypes/CandleStickChart.cxx @@ -77,7 +77,7 @@ void CandleStickChart::addSeries( VDataSeries* pSeries, sal_Int32 /* zSlot */, s void CandleStickChart::createShapes() { - if( m_aZSlots.begin() == m_aZSlots.end() ) //no series + if( m_aZSlots.empty() ) //no series return; if( m_nDimension!=2 ) diff --git a/chart2/source/view/charttypes/NetChart.cxx b/chart2/source/view/charttypes/NetChart.cxx index 5bd26237adb4..2cc8d1eae59c 100644 --- a/chart2/source/view/charttypes/NetChart.cxx +++ b/chart2/source/view/charttypes/NetChart.cxx @@ -344,7 +344,7 @@ struct FormerPoint void NetChart::createShapes() { - if( m_aZSlots.begin() == m_aZSlots.end() ) //no series + if( m_aZSlots.empty() ) //no series return; if( m_bArea ) -- cgit