Kaydet (Commit) e9498c5e authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

Change-Id: Idb363bc9d1d9f650d85e002ae0c6dda4a298fcd2
üst 5ee129fb
...@@ -1238,7 +1238,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( ...@@ -1238,7 +1238,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
uno::Sequence< beans::Property > aProperties( uno::Sequence< beans::Property > aProperties(
rProperties.getLength() ); rProperties.getLength() );
if ( m_aFailedPropNames.size() > 0 ) if ( !m_aFailedPropNames.empty() )
{ {
sal_Int32 nProps = 0; sal_Int32 nProps = 0;
sal_Int32 nCount = rProperties.getLength(); sal_Int32 nCount = rProperties.getLength();
...@@ -1277,7 +1277,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( ...@@ -1277,7 +1277,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
ContentProperties::UCBNamesToDAVNames( ContentProperties::UCBNamesToDAVNames(
aProperties, aPropNames ); aProperties, aPropNames );
if ( aPropNames.size() > 0 ) if ( !aPropNames.empty() )
{ {
std::vector< DAVResource > resources; std::vector< DAVResource > resources;
try try
...@@ -1329,7 +1329,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( ...@@ -1329,7 +1329,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
aHeaderNames, aHeaderNames,
true /* bIncludeUnmatched */ ); true /* bIncludeUnmatched */ );
if ( aHeaderNames.size() > 0 ) if ( !aHeaderNames.empty() )
{ {
try try
{ {
...@@ -1757,7 +1757,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( ...@@ -1757,7 +1757,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
} }
} // for } // for
if ( !bTransient && aProppatchValues.size() ) if ( !bTransient && (!aProppatchValues.empty()) )
{ {
try try
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment