diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
commit | 66a0a3726adc17f1f5378c4c6de00bb930a370d5 (patch) | |
tree | 913412a14b7bbb2ab8f69f708b63c472e67a4dda /comphelper/source/container | |
parent | bc14d27dd0b50a37ff7ec93b49de976e01c54d0d (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I1ceb4359188b61e15a31750a496021c4394e1a3f
Diffstat (limited to 'comphelper/source/container')
3 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx index 9c54c3375b45..cd329af150e9 100644 --- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx +++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx @@ -247,7 +247,7 @@ sal_Bool SAL_CALL IndexedPropertyValuesContainer::supportsService( const OUStrin uno::Reference< uno::XInterface > SAL_CALL IndexedPropertyValuesContainer::Create( SAL_UNUSED_PARAMETER const uno::Reference< uno::XComponentContext >&) { - return (cppu::OWeakObject*)new IndexedPropertyValuesContainer(); + return static_cast<cppu::OWeakObject*>(new IndexedPropertyValuesContainer()); } void createRegistryInfo_IndexedPropertyValuesContainer() diff --git a/comphelper/source/container/NamedPropertyValuesContainer.cxx b/comphelper/source/container/NamedPropertyValuesContainer.cxx index d59944a81329..88ff7f9bfc02 100644 --- a/comphelper/source/container/NamedPropertyValuesContainer.cxx +++ b/comphelper/source/container/NamedPropertyValuesContainer.cxx @@ -216,7 +216,7 @@ sal_Bool SAL_CALL NamedPropertyValuesContainer::supportsService( const OUString& uno::Reference< uno::XInterface > SAL_CALL NamedPropertyValuesContainer::Create( SAL_UNUSED_PARAMETER const uno::Reference< uno::XComponentContext >&) { - return (cppu::OWeakObject*)new NamedPropertyValuesContainer(); + return static_cast<cppu::OWeakObject*>(new NamedPropertyValuesContainer()); } void createRegistryInfo_NamedPropertyValuesContainer() diff --git a/comphelper/source/container/namecontainer.cxx b/comphelper/source/container/namecontainer.cxx index 995180bb17a3..7a273b24e5dd 100644 --- a/comphelper/source/container/namecontainer.cxx +++ b/comphelper/source/container/namecontainer.cxx @@ -199,7 +199,7 @@ Type SAL_CALL NameContainer::getElementType() Reference< XNameContainer > comphelper::NameContainer_createInstance( Type aType ) { - return (XNameContainer*) new NameContainer( aType ); + return static_cast<XNameContainer*>(new NameContainer( aType )); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |