summaryrefslogtreecommitdiffstats
path: root/ucb
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-15 09:31:09 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-15 09:32:41 +0100
commitb82b9a93caaf27855d6059885de29d1989a1907d (patch)
tree7de0987a0736e95e1fac06762d24bb2063063c7d /ucb
parentset LCID of qtz (diff)
downloadcore-b82b9a93caaf27855d6059885de29d1989a1907d.tar.gz
core-b82b9a93caaf27855d6059885de29d1989a1907d.zip
Some cppcheck cleaning
Change-Id: I73b5eb0f12f0e9fcc4b691fadca17cd97e5fd079
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/webdavresponseparser.cxx10
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);