summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorPalenik Mihály <palenik.mihaly@gmail.com>2013-07-11 18:30:38 +0200
committerAndras Timar <atimar@suse.com>2013-07-16 13:31:53 +0000
commitc66e9cd24c28ff00f15770037ae9a8dd852fdada (patch)
treeacb0aa67c05bc46a8093fa9646bf25a19e9cc1ad /sfx2
parent159e3639077d8e05707133969c4e5cd710c10e2e (diff)
Delete SvCacheStream class
I changed SvCacheStream class to SvMemoryStream class in the following: MSE40HTMLClipFormatObj, SfxLockBytesItem, SwEditShell, INetMIMEMessageStream classes, MakeLockBytes_Impl function and SwUnoCursorHelper namespace. I modified header the precompiled_sw.hxx, wrtsh1.cxx, unoobj2.cxx. I added two functions in SvMemoryStream class: GetBuffer and GetSize, and I renamed the old GetSize function to GetBufSize. I deleted SvCacheStream class. Change-Id: I929236538dfbe23cccfd1eb85f10c1d5411baa8d Reviewed-on: https://gerrit.libreoffice.org/4847 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/mieclip.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/mieclip.cxx b/sfx2/source/bastyp/mieclip.cxx
index d9e50ea7c2fd..71776fdaa738 100644
--- a/sfx2/source/bastyp/mieclip.cxx
+++ b/sfx2/source/bastyp/mieclip.cxx
@@ -18,7 +18,6 @@
*/
#include <tools/stream.hxx>
-#include <tools/cachestr.hxx>
#include <sot/storage.hxx>
#include <sot/formats.hxx>
@@ -76,7 +75,7 @@ SvStream* MSE40HTMLClipFormatObj::IsValid( SvStream& rStream )
{
rStream.Seek( nStt );
- pStrm = new SvCacheStream( ( nEnd - nStt < 0x10000l
+ pStrm = new SvMemoryStream( ( nEnd - nStt < 0x10000l
? nEnd - nStt + 32
: 0 ));
*pStrm << rStream;
@@ -91,7 +90,7 @@ SvStream* MSE40HTMLClipFormatObj::IsValid( SvStream& rStream )
if (nSize < 0x10000L)
{
rStream.Seek(nFragStart);
- pStrm = new SvCacheStream(nSize);
+ pStrm = new SvMemoryStream(nSize);
*pStrm << rStream;
pStrm->SetStreamSize(nSize);
pStrm->Seek(STREAM_SEEK_TO_BEGIN);