[Libreoffice-commits] .: ucb/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 14:17:42 PST 2012
ucb/source/ucp/webdav/webdavcontent.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e9498c5e1ed125319e64e2e81b9cef869bda7ea4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Dec 20 23:16:10 2012 +0100
Some cppcheck cleaning
Change-Id: Idb363bc9d1d9f650d85e002ae0c6dda4a298fcd2
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index b6d092d..8d2ec5d 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -1238,7 +1238,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
uno::Sequence< beans::Property > aProperties(
rProperties.getLength() );
- if ( m_aFailedPropNames.size() > 0 )
+ if ( !m_aFailedPropNames.empty() )
{
sal_Int32 nProps = 0;
sal_Int32 nCount = rProperties.getLength();
@@ -1277,7 +1277,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
ContentProperties::UCBNamesToDAVNames(
aProperties, aPropNames );
- if ( aPropNames.size() > 0 )
+ if ( !aPropNames.empty() )
{
std::vector< DAVResource > resources;
try
@@ -1329,7 +1329,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
aHeaderNames,
true /* bIncludeUnmatched */ );
- if ( aHeaderNames.size() > 0 )
+ if ( !aHeaderNames.empty() )
{
try
{
@@ -1757,7 +1757,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
}
} // for
- if ( !bTransient && aProppatchValues.size() )
+ if ( !bTransient && (!aProppatchValues.empty()) )
{
try
{
More information about the Libreoffice-commits
mailing list