diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:18 +0100 |
commit | 43b137e1404acbd16649813e9d493ba97b8f509c (patch) | |
tree | 2e5827c0d60185c56603e66b1ea74a72230b9476 /svtools/source/misc/imap.cxx | |
parent | c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 (diff) |
More loplugin:cstylecast: svtools
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: Ide9e7c53b554f0a36e2078a8823f5ef6fb5cc8fa
Diffstat (limited to 'svtools/source/misc/imap.cxx')
-rw-r--r-- | svtools/source/misc/imap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index b06fd21042db..d304298b26af 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -42,7 +42,7 @@ /******************************************************************************/ -sal_uInt16 IMapObject::nActualTextEncoding = (sal_uInt16) RTL_TEXTENCODING_DONTKNOW; +sal_uInt16 IMapObject::nActualTextEncoding = sal_uInt16(RTL_TEXTENCODING_DONTKNOW); /******************************************************************************/ @@ -320,8 +320,8 @@ bool IMapCircleObject::IsHit( const Point& rPoint ) const const Point aPoint( aCenter - rPoint ); bool bRet = false; - if ( (sal_Int32) sqrt( (double) aPoint.X() * aPoint.X() + - aPoint.Y() * aPoint.Y() ) <= nRadius ) + if ( static_cast<sal_Int32>(sqrt( static_cast<double>(aPoint.X()) * aPoint.X() + + aPoint.Y() * aPoint.Y() )) <= nRadius ) { bRet = true; } @@ -911,7 +911,7 @@ void ImageMap::Write( SvStream& rOStm ) const IMapCompat* pCompat; OUString aImageName( GetName() ); SvStreamEndian nOldFormat = rOStm.GetEndian(); - sal_uInt16 nCount = (sal_uInt16) GetIMapObjectCount(); + sal_uInt16 nCount = static_cast<sal_uInt16>(GetIMapObjectCount()); const rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); //vomit! rOStm.SetEndian( SvStreamEndian::LITTLE ); |