summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:39 +0200
commitee3e23842e7bb0bfe23b6f070b0677dd3d70fd92 (patch)
treedbf53d49b7611bfb08ad1a5e926c3e7e13906508 /sd
parentd373d996e163df68935b5ac3e09a931c32047bc0 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: sd
Change-Id: I47f6ac62a560b8e6e0e83462ae26caf17160393b
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/annotations/Annotation.cxx2
-rw-r--r--sd/source/ui/func/fuformatpaintbrush.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/annotations/Annotation.cxx b/sd/source/core/annotations/Annotation.cxx
index 6d2cdeb185a3..cf1eeb41e703 100644
--- a/sd/source/core/annotations/Annotation.cxx
+++ b/sd/source/core/annotations/Annotation.cxx
@@ -178,7 +178,7 @@ sal_uInt32 Annotation::m_nLastId = 1;
Annotation::Annotation( const Reference< XComponentContext >& context, SdPage* pPage )
: ::cppu::WeakComponentImplHelper< XAnnotation >(m_aMutex)
-, ::cppu::PropertySetMixin< XAnnotation >(context, static_cast< Implements >(IMPLEMENTS_PROPERTY_SET), Sequence< OUString >())
+, ::cppu::PropertySetMixin< XAnnotation >(context, IMPLEMENTS_PROPERTY_SET, Sequence< OUString >())
, m_nId( m_nLastId++ )
, mpPage( pPage )
{
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index a234e78f96bb..acb4ea7fbbd5 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -65,7 +65,7 @@ void FuFormatPaintBrush::DoExecute( SfxRequest& rReq )
const SfxItemSet *pArgs = rReq.GetArgs();
if( pArgs && pArgs->Count() >= 1 )
{
- mbPermanent = static_cast<bool>(static_cast<const SfxBoolItem &>(pArgs->Get(SID_FORMATPAINTBRUSH)).GetValue());
+ mbPermanent = static_cast<const SfxBoolItem &>(pArgs->Get(SID_FORMATPAINTBRUSH)).GetValue();
}
if( mpView )