diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 18:54:42 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 23:38:07 +0100 |
commit | e6ab01ce532d1db01579b70bd476b2f643522bf9 (patch) | |
tree | 635d070ef835aa7f016a540a486fcb363c721e9b /store | |
parent | 5efa7d4605c8c683bb54a1723d0916e6f0166b52 (diff) |
cppcheck: performing init in init list (sfx2/slideshow/stoc/store)
Change-Id: Iddbd3256aabe9552472b55d3d9b88a3769698de9
Reviewed-on: https://gerrit.libreoffice.org/83576
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'store')
-rw-r--r-- | store/source/stordata.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx index 6255fc1adccd..08251cf6e62b 100644 --- a/store/source/stordata.hxx +++ b/store/source/stordata.hxx @@ -551,10 +551,10 @@ struct OStoreDirectoryPageData : public store::PageData /** Construction. */ ChunkDescriptor (sal_uInt32 nPosition, sal_uInt16 nCapacity) + : m_nPage(nPosition / nCapacity), + m_nOffset(static_cast<sal_uInt16>((nPosition % nCapacity) & 0xffff)), + m_nLength(nCapacity - m_nOffset) { - m_nPage = nPosition / nCapacity; - m_nOffset = static_cast<sal_uInt16>((nPosition % nCapacity) & 0xffff); - m_nLength = nCapacity - m_nOffset; } }; |