diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:15:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:15:11 +0100 |
commit | 0b0a6e9b4d99a647d12b25f608150bf652d3f9da (patch) | |
tree | 5a5bb7a70c9ecfbfd930a4c21416043f6eb06640 /store/source/stordata.cxx | |
parent | dd68ebadd038dd99057580a89ecdd44124ac7a77 (diff) |
More loplugin:cstylecast: store
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Ie71dbe8077e1467a93fda3c92cce178e53ecb2f4
Diffstat (limited to 'store/source/stordata.cxx')
-rw-r--r-- | store/source/stordata.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/store/source/stordata.cxx b/store/source/stordata.cxx index d18592fd2bff..4b680a504cb1 100644 --- a/store/source/stordata.cxx +++ b/store/source/stordata.cxx @@ -601,7 +601,7 @@ OStoreDirectoryPageObject::scope ( index0 = nPage; // Setup LinkDescriptor indices. - rDescr.m_nIndex0 = (sal_uInt16)(index0 & 0xffff); + rDescr.m_nIndex0 = static_cast<sal_uInt16>(index0 & 0xffff); // Done. return page::SCOPE_DIRECT; @@ -630,8 +630,8 @@ OStoreDirectoryPageObject::scope ( } // Setup LinkDescriptor indices. - rDescr.m_nIndex0 = (sal_uInt16)(index0 & 0xffff); - rDescr.m_nIndex1 = (sal_uInt16)(index1 & 0xffff); + rDescr.m_nIndex0 = static_cast<sal_uInt16>(index0 & 0xffff); + rDescr.m_nIndex1 = static_cast<sal_uInt16>(index1 & 0xffff); // Done. return page::SCOPE_SINGLE; @@ -664,9 +664,9 @@ OStoreDirectoryPageObject::scope ( } // Setup LinkDescriptor indices. - rDescr.m_nIndex0 = (sal_uInt16)(index0 & 0xffff); - rDescr.m_nIndex1 = (sal_uInt16)(index1 & 0xffff); - rDescr.m_nIndex2 = (sal_uInt16)(index2 & 0xffff); + rDescr.m_nIndex0 = static_cast<sal_uInt16>(index0 & 0xffff); + rDescr.m_nIndex1 = static_cast<sal_uInt16>(index1 & 0xffff); + rDescr.m_nIndex2 = static_cast<sal_uInt16>(index2 & 0xffff); // Done. return page::SCOPE_DOUBLE; @@ -704,10 +704,10 @@ OStoreDirectoryPageObject::scope ( } // Setup LinkDescriptor indices. - rDescr.m_nIndex0 = (sal_uInt16)(index0 & 0xffff); - rDescr.m_nIndex1 = (sal_uInt16)(index1 & 0xffff); - rDescr.m_nIndex2 = (sal_uInt16)(index2 & 0xffff); - rDescr.m_nIndex3 = (sal_uInt16)(index3 & 0xffff); + rDescr.m_nIndex0 = static_cast<sal_uInt16>(index0 & 0xffff); + rDescr.m_nIndex1 = static_cast<sal_uInt16>(index1 & 0xffff); + rDescr.m_nIndex2 = static_cast<sal_uInt16>(index2 & 0xffff); + rDescr.m_nIndex3 = static_cast<sal_uInt16>(index3 & 0xffff); // Done. return page::SCOPE_TRIPLE; |