summaryrefslogtreecommitdiff
path: root/sc
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 /sc
parent611334aa74f97768717376da637bea9baac015aa (diff)
Some cppcheck cleaning
Change-Id: I14cab3dfd26ac1568feef902b566873cecf049b9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index 2c5b43b69006..3a459ae66c97 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -350,7 +350,7 @@ void ScMyValidationsContainer::WriteMessage(ScXMLExport& rExport,
void ScMyValidationsContainer::WriteValidations(ScXMLExport& rExport)
{
- if (aValidationVec.size())
+ if (!aValidationVec.empty())
{
SvXMLElementExport aElemVs(rExport, XML_NAMESPACE_TABLE, XML_CONTENT_VALIDATIONS, true, true);
ScMyValidationVec::iterator aItr(aValidationVec.begin());
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 7f17f84fe001..fa95350c6693 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2030,7 +2030,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum
}
}
- if( bDifferentIndexes && aSequenceMappingVector.size() )
+ if( bDifferentIndexes && !aSequenceMappingVector.empty() )
{
aResult.push_back(
beans::PropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SequenceMapping")), -1,
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index a10ded4527bf..61435d4b1166 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -1163,7 +1163,7 @@ bool getScRangeListForAddress( const rtl::OUString& sName, ScDocShell* pDocSh, S
vNames.push_back( aToken );
} while ( nIndex >= 0 );
- if ( !vNames.size() )
+ if ( vNames.empty() )
vNames.push_back( sName );
std::vector< rtl::OUString >::iterator it = vNames.begin();