diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
commit | 6bf5ebc0019a605d4add8185b8bc4180c4e20088 (patch) | |
tree | 9f3693b5a8aebeae8439c25d29d7cf4297693f0a /stoc/source/defaultregistry | |
parent | eac0f3023c920325a4c58bcf6d5d57041128c06e (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/defaultregistry')
-rw-r--r-- | stoc/source/defaultregistry/defaultregistry.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index 477a76ccb7d9..9f7acea2a5a4 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -679,7 +679,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::openKey( const OUString& aKeyN if ( localKey.is() || defaultKey.is() ) { - return ((XRegistryKey*)new NestedKeyImpl(m_pRegistry, localKey, defaultKey)); + return static_cast<XRegistryKey*>(new NestedKeyImpl(m_pRegistry, localKey, defaultKey)); } else { @@ -717,7 +717,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKe m_state = m_pRegistry->m_state++; - return ((XRegistryKey*)new NestedKeyImpl(m_pRegistry, localKey, defaultKey)); + return (static_cast<XRegistryKey*>(new NestedKeyImpl(m_pRegistry, localKey, defaultKey))); } } else @@ -737,7 +737,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKe m_state = m_pRegistry->m_state++; - return ((XRegistryKey*)new NestedKeyImpl(m_pRegistry, localKey, defaultKey)); + return (static_cast<XRegistryKey*>(new NestedKeyImpl(m_pRegistry, localKey, defaultKey))); } } } @@ -831,7 +831,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) lastIndex = name.lastIndexOf('/'); name = name.copy(lastIndex); retSeq.getArray()[i] = - (XRegistryKey*)new NestedKeyImpl(name, this); + static_cast<XRegistryKey*>(new NestedKeyImpl(name, this)); } sal_uInt32 k = local; @@ -855,7 +855,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) lastIndex = name.lastIndexOf('/'); name = name.copy(lastIndex); retSeq.getArray()[k++] = - (XRegistryKey*)new NestedKeyImpl(name, this); + static_cast<XRegistryKey*>(new NestedKeyImpl(name, this)); } } @@ -1302,7 +1302,7 @@ Reference< XRegistryKey > SAL_CALL NestedRegistryImpl::getRootKey( ) defaultKey = m_defaultReg->getRootKey(); } - return ((XRegistryKey*)new NestedKeyImpl(this, localKey, defaultKey)); + return (static_cast<XRegistryKey*>(new NestedKeyImpl(this, localKey, defaultKey))); } } else |