diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-10 13:51:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-11 06:48:29 +0000 |
commit | d203948fdb780c7af5777fcc26ad88bac1bd714e (patch) | |
tree | 95458f3a290eed3d9a4ca13f28ec63f50490d7a6 /chart2/source/view | |
parent | 754ade38ddb2e96187d00f3e621203cea34961fa (diff) |
convert 'it.begin() == it.end()' to 'it.empty()'
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145
Reviewed-on: https://gerrit.libreoffice.org/16212
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/view')
-rw-r--r-- | chart2/source/view/charttypes/AreaChart.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/CandleStickChart.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/NetChart.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
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 ) |