diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 09:31:09 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 09:32:41 +0100 |
commit | b82b9a93caaf27855d6059885de29d1989a1907d (patch) | |
tree | 7de0987a0736e95e1fac06762d24bb2063063c7d /ucb | |
parent | 4b939e617819e13fa754d4997f1dacdbbe3f1cf9 (diff) |
Some cppcheck cleaning
Change-Id: I73b5eb0f12f0e9fcc4b691fadca17cd97e5fd079
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/webdavresponseparser.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx index ffa488107905..88b51da2cef4 100644 --- a/ucb/source/ucp/webdav/webdavresponseparser.cxx +++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx @@ -237,7 +237,7 @@ namespace { const sal_Int32 nIndex(rSource.indexOf(sal_Unicode(':'), 0)); - if(-1 != nIndex && nIndex > 0 && nIndex + 1 < nLen) + if(nIndex > 0 && ((nIndex + 1) < nLen)) { maNamespace = mapNamespaceToken(rSource.copy(0, nIndex)); maName = rSource.copy(nIndex + 1); @@ -695,7 +695,7 @@ namespace { if(isCollectingProperties()) { - if(maPropStatProperties.size()) + if(!maPropStatProperties.empty()) { // append to maResponseProperties if okay maResponseProperties.insert(maResponseProperties.end(), maPropStatProperties.begin(), maPropStatProperties.end()); @@ -703,7 +703,7 @@ namespace } else { - if(maPropStatNames.size()) + if(!maPropStatNames.empty()) { // when collecting properties append to maResponseNames.insert(maResponseNames.end(), maPropStatNames.begin(), maPropStatNames.end()); @@ -721,7 +721,7 @@ namespace if(isCollectingProperties()) { // create DAVResource when we have content - if(maResponseProperties.size()) + if(!maResponseProperties.empty()) { http_dav_ucp::DAVResource aDAVResource; @@ -733,7 +733,7 @@ namespace else { // when collecting properties add them to result when there are some - if(maResponseNames.size()) + if(!maResponseNames.empty()) { http_dav_ucp::DAVResourceInfo aDAVResourceInfo(maHref); |