diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:01 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:35 +0200 |
commit | 66fd1442696059cc6de07ec96af77082654a0990 (patch) | |
tree | 5368bc4dc5c39ff03dd9222bafd57442df0ff63e /svx | |
parent | fee11cbc619576ae69b03e62622a38bef8799502 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 | ||||
-rw-r--r-- | svx/source/unodraw/unoprov.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index ea757e9ec0fc..1d0baff17e5d 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -2013,7 +2013,7 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( sal_Bool bLineGeometryNeededOnl SdrObject* pRet = NULL; sal_uInt32 i; - if ( vObjectList.size() ) + if ( !vObjectList.empty() ) { const SfxItemSet& rCustomShapeSet = pCustomShapeObj->GetMergedItemSet(); Color aFillColor; @@ -2021,7 +2021,7 @@ SdrObject* EnhancedCustomShape2d::CreatePathObj( sal_Bool bLineGeometryNeededOnl sal_uInt32 nColorIndex = 0; // #i37011# remove invisible objects - if(vObjectList.size()) + if(!vObjectList.empty()) { std::vector< SdrPathObj* > vTempList; diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx index 4634589a4fbb..743d2b72e74c 100644 --- a/svx/source/unodraw/unoprov.cxx +++ b/svx/source/unodraw/unoprov.cxx @@ -910,7 +910,7 @@ uno::Sequence< OUString > UHashMap::getServiceNames() OUString* pStrings = aSeq.getArray(); int i = 0; - for (UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); it++) + for (UHashMapImpl::const_iterator it = rMap.begin(); it != rMap.end(); ++it) pStrings[i++] = it->first; return aSeq; |