summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-12 21:09:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-12 21:17:58 +0100
commita0f2bb7042b5cbadaade9077a7c673d5d6136cc6 (patch)
tree8aebf53526a450fa669bfe1d1a05902622f667e8 /package
parent417b9403fe2390ec6f5c899bc0e3ee506abd179c (diff)
unnecessary cast
Change-Id: I7c040b2539b9f7f923620a02d0a27e8e000fee4a
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/xstorage.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 5eac91679f3a..c499e019fe6b 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -209,7 +209,7 @@ OStorage_Impl::OStorage_Impl( uno::Reference< io::XInputStream > xInputStream,
// all the checks done below by assertion statements must be done by factory
SAL_WARN_IF( !xInputStream.is(), "package.xstor", "No input stream is provided!" );
- m_pSwitchStream = (SwitchablePersistenceStream*) new SwitchablePersistenceStream( xContext, xInputStream );
+ m_pSwitchStream = new SwitchablePersistenceStream(xContext, xInputStream);
m_xInputStream = m_pSwitchStream->getInputStream();
if ( m_nStorageMode & embed::ElementModes::WRITE )
@@ -251,13 +251,12 @@ OStorage_Impl::OStorage_Impl( uno::Reference< io::XStream > xStream,
if ( m_nStorageMode & embed::ElementModes::WRITE )
{
- m_pSwitchStream = (SwitchablePersistenceStream*) new SwitchablePersistenceStream( xContext, xStream );
+ m_pSwitchStream = new SwitchablePersistenceStream(xContext, xStream);
m_xStream = static_cast< io::XStream* >( m_pSwitchStream );
}
else
{
- m_pSwitchStream = (SwitchablePersistenceStream*) new SwitchablePersistenceStream( xContext,
- xStream->getInputStream() );
+ m_pSwitchStream = new SwitchablePersistenceStream(xContext, xStream->getInputStream());
m_xInputStream = m_pSwitchStream->getInputStream();
}
}