summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-08-15 09:36:42 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-08-18 11:15:18 -0400
commit7ecc633bfe4bda3e0647b411ad7d1e6a3357c908 (patch)
tree4f9949a0db38b0fe1535928e4fba3f0a208579c0
parent9177375a5e0795d073770e119ba5a8851103d046 (diff)
Using empty() makes it clearer.
Change-Id: I031f478aab721af0a65762f98bcde3b2473453e6
-rw-r--r--chart2/source/view/charttypes/PieChart.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index eeaf1c54c78c..32542d21a5d6 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -387,7 +387,8 @@ bool PieChart::isSeparateStackingForDifferentSigns( sal_Int32 /* nDimensionIndex
void PieChart::createShapes()
{
- if( m_aZSlots.begin() == m_aZSlots.end() ) //no series
+ if (m_aZSlots.empty())
+ // No series to plot.
return;
OSL_ENSURE(m_pShapeFactory&&m_xLogicTarget.is()&&m_xFinalTarget.is(),"PieChart is not proper initialized");