summaryrefslogtreecommitdiff
path: root/ucb/source/cacher
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-12 11:21:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-28 11:23:34 +0200
commit9348b322a5c230dfcc2231661b73e480b130fcd9 (patch)
tree2c81a97d6f54229c87c5e2a37c73935ffc2527ac /ucb/source/cacher
parent5bcd18461b8cb63b477dbb74025374b4c963161a (diff)
clang-tidy readability-simplify-boolean-expr
Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a Reviewed-on: https://gerrit.libreoffice.org/36450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/cacher')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 353de0253519..dbe645cf2e04 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -179,12 +179,9 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache
if( !m_pResult )
return false;
- if( ( m_pResult->FetchError & FetchError::ENDOFDATA )
+ return ( m_pResult->FetchError & FetchError::ENDOFDATA )
&& m_pResult->Orientation
- && m_pResult->Rows.getLength() )
- return true;
-
- return false;
+ && m_pResult->Rows.getLength();
}
bool SAL_CALL CachedContentResultSet::CCRS_Cache