From 373a9b9bb62c50072c06e28fd932afb6e71ba687 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 13 Apr 2015 12:35:57 +0200 Subject: loplugin:redundantcast: redundant const_cast followed by implicit upcast Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb --- filter/source/flash/swfdialog.cxx | 2 +- filter/source/pdf/pdfdialog.cxx | 2 +- filter/source/svg/svgdialog.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'filter') diff --git a/filter/source/flash/swfdialog.cxx b/filter/source/flash/swfdialog.cxx index 981731ae642e..64a182f47db3 100644 --- a/filter/source/flash/swfdialog.cxx +++ b/filter/source/flash/swfdialog.cxx @@ -201,7 +201,7 @@ Reference< XPropertySetInfo > SAL_CALL SWFDialog::getPropertySetInfo() ::cppu::IPropertyArrayHelper& SWFDialog::getInfoHelper() { - return *const_cast(this)->getArrayHelper(); + return *getArrayHelper(); } diff --git a/filter/source/pdf/pdfdialog.cxx b/filter/source/pdf/pdfdialog.cxx index 9db0eb60f8a7..93de5b4e9bc7 100644 --- a/filter/source/pdf/pdfdialog.cxx +++ b/filter/source/pdf/pdfdialog.cxx @@ -141,7 +141,7 @@ Reference< XPropertySetInfo > SAL_CALL PDFDialog::getPropertySetInfo() ::cppu::IPropertyArrayHelper& PDFDialog::getInfoHelper() { - return *const_cast(this)->getArrayHelper(); + return *getArrayHelper(); } diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx index fe58a3a7652a..ccc9b45ee653 100644 --- a/filter/source/svg/svgdialog.cxx +++ b/filter/source/svg/svgdialog.cxx @@ -171,7 +171,7 @@ Reference< XPropertySetInfo > SAL_CALL SVGDialog::getPropertySetInfo() ::cppu::IPropertyArrayHelper& SVGDialog::getInfoHelper() { - return *const_cast< SVGDialog *>(this)->getArrayHelper(); + return *getArrayHelper(); } -- cgit