diff options
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; } }; |