From dc47b2e5136f0f767273dc5fdba5c822575e194b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 6 May 2015 16:33:19 +0200 Subject: Unwind SotStorageRef typedef Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1 --- starmath/source/document.cxx | 2 +- starmath/source/mathtype.cxx | 2 +- starmath/source/smdetect.cxx | 2 +- starmath/source/unofilter.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index b17665f36a1b..8ceb44924dc4 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -724,7 +724,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium) { if ( SotStorage::IsStorageFile( pStream ) ) { - SotStorageRef aStorage = new SotStorage( pStream, false ); + tools::SvRef aStorage = new SotStorage( pStream, false ); if ( aStorage->IsStream(OUString("Equation Native")) ) { // is this a MathType Storage? diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index c93abc95dd31..cc5036cf2242 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -1885,7 +1885,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium ) SvStream *pStream = rMedium.GetOutStream(); if ( pStream ) { - SotStorageRef pStor = new SotStorage( pStream, false ); + tools::SvRef pStor = new SotStorage( pStream, false ); SvGlobalName aGName(0x0002ce02L, 0x0000, 0x0000,0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46 ); diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index e00ec08d648a..c16e4ded7ea0 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -69,7 +69,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor bool bStorageOk = false; try { - SotStorageRef aStorage = new SotStorage( pInStrm, false ); + tools::SvRef aStorage = new SotStorage( pInStrm, false ); bStorageOk = !aStorage->GetError(); if (bStorageOk) { diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx index c89f21532dd0..d87ce77b2bba 100644 --- a/starmath/source/unofilter.cxx +++ b/starmath/source/unofilter.cxx @@ -75,7 +75,7 @@ sal_Bool MathTypeFilter::filter(const uno::Sequence& rDesc { if (SotStorage::IsStorageFile(pStream.get())) { - SotStorageRef aStorage(new SotStorage(pStream.get(), false)); + tools::SvRef aStorage(new SotStorage(pStream.get(), false)); // Is this a MathType Storage? if (aStorage->IsStream(OUString("Equation Native"))) { -- cgit