summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-10 13:51:56 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-06 08:54:32 -0500
commit7a58bd20dce4119507344e9a0c5a8aa44662045d (patch)
tree0fb9d9ecc4645f445e2bed5ebd2caf33b1e6409b /chart2
parent757ed85c6f2ebbebe0b2c15dd8fc675b3fad6ffd (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> (cherry picked from commit d203948fdb780c7af5777fcc26ad88bac1bd714e)
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/ChartTypeDialogController.cxx2
-rw-r--r--chart2/source/view/charttypes/AreaChart.cxx2
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx2
-rw-r--r--chart2/source/view/charttypes/CandleStickChart.cxx2
-rw-r--r--chart2/source/view/charttypes/NetChart.cxx2
5 files changed, 5 insertions, 5 deletions
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 )