summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-06 16:20:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-07 14:05:50 +0200
commit483ba975b40d99c931c22a63fc85e190922406a7 (patch)
treef71c380c463b5fae90ead8f44b1a76d2dfee1ca0 /sd/source
parentc1e1806c9c01d2ac2f62f95dd79cbb2037bc87af (diff)
remove some unnecessary casts
Change-Id: I16aa2cdc3e92c3ea2661ebf0a528f72cbe193df9 Reviewed-on: https://gerrit.libreoffice.org/78716 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/func/futext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
index fdb04d4a7894..7005684dc8a0 100644
--- a/sd/source/ui/func/futext.cxx
+++ b/sd/source/ui/func/futext.cxx
@@ -1283,9 +1283,9 @@ void FuText::ReceiveRequest(SfxRequest& rReq)
{
SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
- if( dynamic_cast< const SdrTextObj *>( pObj ) != nullptr)
+ if( auto pTextObj = dynamic_cast<SdrTextObj *>( pObj ))
{
- mxTextObj.reset( static_cast< SdrTextObj* >( pObj ) );
+ mxTextObj.reset( pTextObj );
}
}
}