diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:41 +0100 |
commit | 0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch) | |
tree | d9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/ui/misc/linenum.cxx | |
parent | 506856ca50e676520bcc80a8b498355663d0388f (diff) |
More loplugin:cstylecast: sw
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: I0f49d21dfdf82742f11b27709f74294feb1e419e
Diffstat (limited to 'sw/source/ui/misc/linenum.cxx')
-rw-r--r-- | sw/source/ui/misc/linenum.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx index f086622de253..dab6962eb74a 100644 --- a/sw/source/ui/misc/linenum.cxx +++ b/sw/source/ui/misc/linenum.cxx @@ -120,7 +120,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(SwView const *pVw) m_pFormatLB->SelectNumberingType(nSelFormat); // position - m_pPosLB->SelectEntryPos((sal_Int32)rInf.GetPos()); + m_pPosLB->SelectEntryPos(static_cast<sal_Int32>(rInf.GetPos())); // offset sal_uInt16 nOffset = rInf.GetPosFromLeft(); @@ -222,16 +222,16 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl, Button*, void) aInf.SetPos((LineNumberPosition)m_pPosLB->GetSelectedEntryPos()); // offset - aInf.SetPosFromLeft((sal_uInt16)m_pOffsetMF->Denormalize(m_pOffsetMF->GetValue(FUNIT_TWIP))); + aInf.SetPosFromLeft(static_cast<sal_uInt16>(m_pOffsetMF->Denormalize(m_pOffsetMF->GetValue(FUNIT_TWIP)))); // numbering offset - aInf.SetCountBy((sal_uInt16)m_pNumIntervalNF->GetValue()); + aInf.SetCountBy(static_cast<sal_uInt16>(m_pNumIntervalNF->GetValue())); // divider aInf.SetDivider(m_pDivisorED->GetText()); // divider offset - aInf.SetDividerCountBy((sal_uInt16)m_pDivIntervalNF->GetValue()); + aInf.SetDividerCountBy(static_cast<sal_uInt16>(m_pDivIntervalNF->GetValue())); // count aInf.SetCountBlankLines(m_pCountEmptyLinesCB->IsChecked()); |