diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:29:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:29:54 +0200 |
commit | ced1ffc2d91e0eeac14fedb94f7f31532d3e8f22 (patch) | |
tree | a1c565c5907dd2c46066dc596a39cc1309863bbf /writerperfect | |
parent | f6ec07a3963a401dc736baa9bdd2ed3c7325bb66 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I72ba7c59cfcf0ec4e5e31067a260e82f8f604567
Diffstat (limited to 'writerperfect')
17 files changed, 18 insertions, 18 deletions
diff --git a/writerperfect/source/calc/MSWorksCalcImportFilter.cxx b/writerperfect/source/calc/MSWorksCalcImportFilter.cxx index 3ccf2db386b0..98d9dea57f69 100644 --- a/writerperfect/source/calc/MSWorksCalcImportFilter.cxx +++ b/writerperfect/source/calc/MSWorksCalcImportFilter.cxx @@ -130,7 +130,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MSWorksCalcImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MSWorksCalcImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MSWorksCalcImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/calc/MWAWCalcImportFilter.cxx b/writerperfect/source/calc/MWAWCalcImportFilter.cxx index 5b2f3f79f2ba..752a64dbbef0 100644 --- a/writerperfect/source/calc/MWAWCalcImportFilter.cxx +++ b/writerperfect/source/calc/MWAWCalcImportFilter.cxx @@ -168,7 +168,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MWAWCalcImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MWAWCalcImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MWAWCalcImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/CDRImportFilter.cxx b/writerperfect/source/draw/CDRImportFilter.cxx index e5671da860c2..7a9c833efb45 100644 --- a/writerperfect/source/draw/CDRImportFilter.cxx +++ b/writerperfect/source/draw/CDRImportFilter.cxx @@ -62,7 +62,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL CDRImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new CDRImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new CDRImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/CMXImportFilter.cxx b/writerperfect/source/draw/CMXImportFilter.cxx index 2670706d97cd..9f034eb64598 100644 --- a/writerperfect/source/draw/CMXImportFilter.cxx +++ b/writerperfect/source/draw/CMXImportFilter.cxx @@ -62,7 +62,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL CMXImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new CMXImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new CMXImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/FreehandImportFilter.cxx b/writerperfect/source/draw/FreehandImportFilter.cxx index 2afe6d687a59..941be250875a 100644 --- a/writerperfect/source/draw/FreehandImportFilter.cxx +++ b/writerperfect/source/draw/FreehandImportFilter.cxx @@ -58,7 +58,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL FreehandImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new FreehandImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new FreehandImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/MSPUBImportFilter.cxx b/writerperfect/source/draw/MSPUBImportFilter.cxx index b0f5e635b48e..6d96a0d23391 100644 --- a/writerperfect/source/draw/MSPUBImportFilter.cxx +++ b/writerperfect/source/draw/MSPUBImportFilter.cxx @@ -60,7 +60,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MSPUBImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MSPUBImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MSPUBImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/MWAWDrawImportFilter.cxx b/writerperfect/source/draw/MWAWDrawImportFilter.cxx index 85ce6d62e6c9..8b5b21acb6be 100644 --- a/writerperfect/source/draw/MWAWDrawImportFilter.cxx +++ b/writerperfect/source/draw/MWAWDrawImportFilter.cxx @@ -176,7 +176,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MWAWDrawImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MWAWDrawImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MWAWDrawImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/PageMakerImportFilter.cxx b/writerperfect/source/draw/PageMakerImportFilter.cxx index 915b2c22615f..fe69182090c9 100644 --- a/writerperfect/source/draw/PageMakerImportFilter.cxx +++ b/writerperfect/source/draw/PageMakerImportFilter.cxx @@ -60,7 +60,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL PageMakerImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new PageMakerImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new PageMakerImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/VisioImportFilter.cxx b/writerperfect/source/draw/VisioImportFilter.cxx index bfa1cbe396e4..923cca6da102 100644 --- a/writerperfect/source/draw/VisioImportFilter.cxx +++ b/writerperfect/source/draw/VisioImportFilter.cxx @@ -58,7 +58,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL VisioImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new VisioImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new VisioImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx index d99572a1d6d1..165c53df23c0 100644 --- a/writerperfect/source/draw/WPGImportFilter.cxx +++ b/writerperfect/source/draw/WPGImportFilter.cxx @@ -65,7 +65,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL WPGImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new WPGImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new WPGImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index f4e2cba4fd04..bd51f1df69c5 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -257,7 +257,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL KeynoteImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new KeynoteImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new KeynoteImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/impress/MWAWPresentationImportFilter.cxx b/writerperfect/source/impress/MWAWPresentationImportFilter.cxx index c93a9bcf7802..1abcaf6548a0 100644 --- a/writerperfect/source/impress/MWAWPresentationImportFilter.cxx +++ b/writerperfect/source/impress/MWAWPresentationImportFilter.cxx @@ -158,7 +158,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MWAWPresentationImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MWAWPresentationImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MWAWPresentationImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/writer/AbiWordImportFilter.cxx b/writerperfect/source/writer/AbiWordImportFilter.cxx index 11b3e18b1d01..2298d987e489 100644 --- a/writerperfect/source/writer/AbiWordImportFilter.cxx +++ b/writerperfect/source/writer/AbiWordImportFilter.cxx @@ -61,7 +61,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL AbiWordImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new AbiWordImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new AbiWordImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/writer/EBookImportFilter.cxx b/writerperfect/source/writer/EBookImportFilter.cxx index a7db6c243cdc..5301bdc8afe1 100644 --- a/writerperfect/source/writer/EBookImportFilter.cxx +++ b/writerperfect/source/writer/EBookImportFilter.cxx @@ -116,7 +116,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL EBookImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new EBookImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new EBookImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx index 90bb62d65f92..35e4cb663220 100644 --- a/writerperfect/source/writer/MSWorksImportFilter.cxx +++ b/writerperfect/source/writer/MSWorksImportFilter.cxx @@ -106,7 +106,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MSWorksImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MSWorksImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MSWorksImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/writer/MWAWImportFilter.cxx b/writerperfect/source/writer/MWAWImportFilter.cxx index 34bf04ea8fda..0f624118fab1 100644 --- a/writerperfect/source/writer/MWAWImportFilter.cxx +++ b/writerperfect/source/writer/MWAWImportFilter.cxx @@ -205,7 +205,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL MWAWImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new MWAWImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new MWAWImportFilter(rContext)); } // XServiceInfo diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index 389e5b51c5d0..cc383174791a 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -256,7 +256,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL WordPerfectImportFilter_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new WordPerfectImportFilter(rContext); + return static_cast<cppu::OWeakObject *>(new WordPerfectImportFilter(rContext)); } // XServiceInfo @@ -387,7 +387,7 @@ throw (RuntimeException) Reference< XInterface > SAL_CALL WordPerfectImportFilterDialog_createInstance(const Reference< XComponentContext > &rContext) throw(Exception) { - return (cppu::OWeakObject *) new WordPerfectImportFilterDialog(rContext); + return static_cast<cppu::OWeakObject *>(new WordPerfectImportFilterDialog(rContext)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |