diff options
author | David Tardon <dtardon@redhat.com> | 2016-01-27 14:52:23 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-28 13:19:33 +0100 |
commit | db87ae54f755023975ef24da0a0fc51656f238e8 (patch) | |
tree | 625f12a68c836e73a718298a679fd0b540a0404b /sd | |
parent | 7e8f24c569abda227a6d7c3a27a0c394f6517e92 (diff) |
we have had RTTI for a looong time
Change-Id: Id5b07e6898cfc5b54c3094a10b1f6f91f3ade07d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index 6b9ce0b05568..e34157813aeb 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -187,10 +187,10 @@ void DrawDocShell::OnDocumentPrinterChanged(Printer* pNewPrinter) return; } - // if 0 != dynamic_cast< SfxPrinter *>( (mpPrinter )) + SfxPrinter* const pSfxPrinter = dynamic_cast<SfxPrinter*>(pNewPrinter); + if (pSfxPrinter) { - // Since we do not have RTTI we use a hard cast (...) - SetPrinter(static_cast<SfxPrinter*>(pNewPrinter)); + SetPrinter(pSfxPrinter); // container owns printer mbOwnPrinter = false; |