summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-06 16:38:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-07 11:05:04 +0200
commit0241519f323b2b29db747467b8c3d9590c33f0df (patch)
treede5e98992f8db0ed8d23f1ff8d972113700295fd /starmath
parentdc47b2e5136f0f767273dc5fdba5c822575e194b (diff)
Unwind SotStorageStreamRef typedef
Change-Id: If7652a7c0251b741660365848a717c06954ca419
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx2
-rw-r--r--starmath/source/eqnolefilehdr.cxx2
-rw-r--r--starmath/source/mathtype.cxx8
3 files changed, 6 insertions, 6 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index ddc1367f9ab6..5531a4c21427 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -128,7 +128,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
virtual void OnDocumentPrinterChanged( Printer * ) SAL_OVERRIDE;
virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE;
virtual bool Load( SfxMedium& rMedium ) SAL_OVERRIDE;
- void ImplSave( SotStorageStreamRef xStrm );
+ void ImplSave( tools::SvRef<SotStorageStream> xStrm );
virtual bool Save() SAL_OVERRIDE;
virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE;
virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE;
diff --git a/starmath/source/eqnolefilehdr.cxx b/starmath/source/eqnolefilehdr.cxx
index ddd6e9593b9e..0853ebd1cac8 100644
--- a/starmath/source/eqnolefilehdr.cxx
+++ b/starmath/source/eqnolefilehdr.cxx
@@ -32,7 +32,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
// code snippet copied from MathType::Parse
- SotStorageStreamRef xSrc = pStor->OpenSotStream(
+ tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream(
OUString("Equation Native"),
STREAM_STD_READ | StreamMode::NOCREATE);
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index cc5036cf2242..09eb7e1a23d3 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -554,7 +554,7 @@ void MathType::TypeFaceToString(OUString &rTxt,sal_uInt8 nFace)
int MathType::Parse(SotStorage *pStor)
{
- SotStorageStreamRef xSrc = pStor->OpenSotStream(
+ tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream(
OUString("Equation Native"),
STREAM_STD_READ | StreamMode::NOCREATE);
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
@@ -1906,7 +1906,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
0xB2, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
- SotStorageStreamRef xStor( pStor->OpenSotStream(OUString("\1CompObj")));
+ tools::SvRef<SotStorageStream> xStor( pStor->OpenSotStream(OUString("\1CompObj")));
xStor->Write(aCompObj,sizeof(aCompObj));
static sal_uInt8 const aOle[] = {
@@ -1914,12 +1914,12 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00
};
- SotStorageStreamRef xStor2( pStor->OpenSotStream(OUString("\1Ole")));
+ tools::SvRef<SotStorageStream> xStor2( pStor->OpenSotStream(OUString("\1Ole")));
xStor2->Write(aOle,sizeof(aOle));
xStor.Clear();
xStor2.Clear();
- SotStorageStreamRef xSrc = pStor->OpenSotStream(OUString("Equation Native"));
+ tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream(OUString("Equation Native"));
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
return 0;