summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-11 10:06:49 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-06 08:55:50 -0500
commitaaeead445c1c73de6f8f4c088ef87dd6fb24c661 (patch)
tree25339038b555394fd8b3e505803ce0f32a195f01 /chart2
parent7a58bd20dce4119507344e9a0c5a8aa44662045d (diff)
convert expressions like 'size() == 0' to 'empty()'
(cherry picked from commit 776a3f14f2d987312b926ebc1ad09321a3a87f0d) 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 3510549abcf9..ccd569a0d751 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 1b7f67acc2c1..4421a14cd25c 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;