diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-11 15:56:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-12 10:31:25 +0100 |
commit | f147b160aef1735d34c488353a7d4b875788a7e1 (patch) | |
tree | ab3bd613cf016cde906b3fdcbaab4246ca699e1e /ucb/source | |
parent | 718f540fb63af27c1336f89213444e9af753b8a9 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Ifa384933569b27d0d08eb479bb95b799163ae386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88450
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpdirp.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index 833af4daf9f3..762d3f192bc1 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -167,7 +167,7 @@ sal_Int32 CachedContentResultSet::CCRS_Cache return 0; sal_Int32 nEnd = m_pResult->StartIndex; if( m_pResult->Orientation ) - return nEnd += m_pResult->Rows.getLength() - 1; + return nEnd + m_pResult->Rows.getLength() - 1; else return nEnd; } diff --git a/ucb/source/ucp/ftp/ftpdirp.cxx b/ucb/source/ucp/ftp/ftpdirp.cxx index 723f78b51cef..69bea64ab0e8 100644 --- a/ucb/source/ucp/ftp/ftpdirp.cxx +++ b/ucb/source/ucp/ftp/ftpdirp.cxx @@ -845,7 +845,7 @@ bool FTPDirectoryParser::parseUNIX ( const char *pBuffer) { const char *p1, *p2; - p1 = p2 = pBuffer; + p1 = pBuffer; if (!((*p1 == '-') || (*p1 == 'd') || (*p1 == 'l'))) return false; |