summaryrefslogtreecommitdiff
path: root/stoc/source/defaultregistry/defaultregistry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/defaultregistry/defaultregistry.cxx')
-rw-r--r--stoc/source/defaultregistry/defaultregistry.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx
index 0e605fed9298..db6327353b53 100644
--- a/stoc/source/defaultregistry/defaultregistry.cxx
+++ b/stoc/source/defaultregistry/defaultregistry.cxx
@@ -641,7 +641,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::openKey( const OUString& aKeyN
if ( localKey.is() || defaultKey.is() )
{
- return static_cast<XRegistryKey*>(new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey));
+ return new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey);
}
else
{
@@ -678,7 +678,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKe
m_state = m_xRegistry->m_state++;
- return static_cast<XRegistryKey*>(new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey));
+ return new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey);
}
}
else
@@ -698,7 +698,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKe
m_state = m_xRegistry->m_state++;
- return static_cast<XRegistryKey*>(new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey));
+ return new NestedKeyImpl(m_xRegistry.get(), localKey, defaultKey);
}
}
}
@@ -786,8 +786,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( )
name = localSeq.getConstArray()[i];
lastIndex = name.lastIndexOf('/');
name = name.copy(lastIndex);
- retSeq.getArray()[i] =
- static_cast<XRegistryKey*>(new NestedKeyImpl(name, this));
+ retSeq.getArray()[i] = new NestedKeyImpl(name, this);
}
sal_uInt32 k = local;
@@ -810,8 +809,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( )
name = defaultSeq.getConstArray()[i];
lastIndex = name.lastIndexOf('/');
name = name.copy(lastIndex);
- retSeq.getArray()[k++] =
- static_cast<XRegistryKey*>(new NestedKeyImpl(name, this));
+ retSeq.getArray()[k++] = new NestedKeyImpl(name, this);
}
}
@@ -1236,7 +1234,7 @@ Reference< XRegistryKey > SAL_CALL NestedRegistryImpl::getRootKey( )
defaultKey = m_defaultReg->getRootKey();
}
- return static_cast<XRegistryKey*>(new NestedKeyImpl(this, localKey, defaultKey));
+ return new NestedKeyImpl(this, localKey, defaultKey);
}
return Reference<XRegistryKey>();