summaryrefslogtreecommitdiffstats
path: root/chart2/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-06-30 18:20:20 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-06-30 18:21:26 +0200
commit6b11a18071254a443c8fe7e7b0b1c95b0f9fd35e (patch)
tree88cced9ff3bb7a89aa3a76bbd54591994ed01cc7 /chart2/source
parentremove one more unused string (diff)
downloadcore-6b11a18071254a443c8fe7e7b0b1c95b0f9fd35e.tar.gz
core-6b11a18071254a443c8fe7e7b0b1c95b0f9fd35e.zip
Some cppcheck cleaning
Change-Id: I14cab3dfd26ac1568feef902b566873cecf049b9
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/view/main/ChartView.cxx2
-rw-r--r--chart2/source/view/main/VDataSeries.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 0d21ebe4352f..8714040fed9d 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -763,7 +763,7 @@ void SeriesPlotterContainer::initializeCooSysAndSeriesPlotter(
}
//transport seriesnames to the coordinatesystems if needed
- if( m_aSeriesPlotterList.size() )
+ if( !m_aSeriesPlotterList.empty() )
{
uno::Sequence< rtl::OUString > aSeriesNames;
bool bSeriesNamesInitialized = false;
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index 9fc7695b21dc..25420ad45342 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -110,7 +110,7 @@ struct lcl_LessXOfPoint
inline bool operator() ( const std::vector< double >& first,
const std::vector< double >& second )
{
- if( first.size() > 0 && second.size() > 0 )
+ if( !first.empty() && !second.empty() )
{
return first[0]<second[0];
}