summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-11 10:06:49 +0200
committerNoel Grandin <noel@peralex.com>2015-06-11 10:07:08 +0200
commit776a3f14f2d987312b926ebc1ad09321a3a87f0d (patch)
tree09be8f37156fb9147e306dbd27d5dfa8e282c43f /chart2
parentf60e521f24863643c7befed7f84db7d659c3c547 (diff)
convert expressions like 'size() == 0' to 'empty()'
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/ChartView.cxx2
-rw-r--r--chart2/source/view/main/GL3DRenderer.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index c8ca5c51ce31..492f10c99d7c 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -861,7 +861,7 @@ void SeriesPlotterContainer::AdaptScaleOfYAxisWithoutAttachedSeries( ChartModel&
{
AxisUsage& rAxisUsage = (*aAxisIter).second;
::std::vector< VCoordinateSystem* > aVCooSysList_Y = rAxisUsage.getCoordinateSystems( 1, nAxisIndex );
- if( !aVCooSysList_Y.size() )
+ if( aVCooSysList_Y.empty() )
continue;
uno::Reference< XDiagram > xDiagram( rModel.getFirstDiagram() );
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx
index ed87efdf70a1..ee3dbb59b93c 100644
--- a/chart2/source/view/main/GL3DRenderer.cxx
+++ b/chart2/source/view/main/GL3DRenderer.cxx
@@ -1840,7 +1840,7 @@ void OpenGL3DRenderer::CreateTextTextureBatch(const boost::shared_array<sal_uInt
index++;
}
//if the sub texture number of the last texture array reach the largest, create a new textur array
- if ((m_TextInfoBatch.texture.size() == 0) ||
+ if (m_TextInfoBatch.texture.empty() ||
(m_TextInfoBatch.texture[index].subTextureNum >= m_TextInfoBatch.batchNum))
{
TextureArrayInfo textureArray;