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/stortree.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/stortree.cxx')
-rw-r--r-- | store/source/stortree.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx index 8733e9bf12bf..e4b577393373 100644 --- a/store/source/stortree.cxx +++ b/store/source/stortree.cxx @@ -72,14 +72,14 @@ sal_uInt16 OStoreBTreeNodeData::find (const T& t) const sal_Int32 const m = ((l + r) >> 1); if (t.m_aKey == m_pData[m].m_aKey) - return (sal_uInt16)m; + return static_cast<sal_uInt16>(m); if (t.m_aKey < m_pData[m].m_aKey) r = m - 1; else l = m + 1; } - sal_uInt16 const k = (sal_uInt16)r; + sal_uInt16 const k = static_cast<sal_uInt16>(r); if ((k < capacityCount()) && (t.m_aKey < m_pData[k].m_aKey)) return k - 1; else |