summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-06 16:33:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-07 11:05:04 +0200
commitdc47b2e5136f0f767273dc5fdba5c822575e194b (patch)
tree128ac4f7f3aca38d0928b76e529ae7fae021f7c3 /starmath
parente14b7660f622a83fe97635649674ade05fe1eb72 (diff)
Unwind SotStorageRef typedef
Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/mathtype.cxx2
-rw-r--r--starmath/source/smdetect.cxx2
-rw-r--r--starmath/source/unofilter.cxx2
4 files changed, 4 insertions, 4 deletions
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<SotStorage> 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<SotStorage> 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<SotStorage> 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<beans::PropertyValue>& rDesc
{
if (SotStorage::IsStorageFile(pStream.get()))
{
- SotStorageRef aStorage(new SotStorage(pStream.get(), false));
+ tools::SvRef<SotStorage> aStorage(new SotStorage(pStream.get(), false));
// Is this a MathType Storage?
if (aStorage->IsStream(OUString("Equation Native")))
{