From e6ab01ce532d1db01579b70bd476b2f643522bf9 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 23 Nov 2019 18:54:42 +0100 Subject: cppcheck: performing init in init list (sfx2/slideshow/stoc/store) Change-Id: Iddbd3256aabe9552472b55d3d9b88a3769698de9 Reviewed-on: https://gerrit.libreoffice.org/83576 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- store/source/stordata.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'store') 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((nPosition % nCapacity) & 0xffff)), + m_nLength(nCapacity - m_nOffset) { - m_nPage = nPosition / nCapacity; - m_nOffset = static_cast((nPosition % nCapacity) & 0xffff); - m_nLength = nCapacity - m_nOffset; } }; -- cgit