summaryrefslogtreecommitdiff
path: root/svl
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 /svl
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 'svl')
-rw-r--r--svl/source/items/lckbitem.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/items/lckbitem.cxx b/svl/source/items/lckbitem.cxx
index e3c58862eaa9..05d7ae3b5453 100644
--- a/svl/source/items/lckbitem.cxx
+++ b/svl/source/items/lckbitem.cxx
@@ -21,7 +21,6 @@
#include <svl/poolitem.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
-#include <tools/cachestr.hxx>
// -----------------------------------------------------------------------
@@ -39,7 +38,7 @@ SfxLockBytesItem::SfxLockBytesItem( sal_uInt16 nW, SvStream &rStream )
: SfxPoolItem( nW )
{
rStream.Seek( 0L );
- _xVal = new SvLockBytes( new SvCacheStream(), sal_True );
+ _xVal = new SvLockBytes( new SvMemoryStream(), sal_True );
SvStream aLockBytesStream( _xVal );
rStream >> aLockBytesStream;
@@ -121,7 +120,7 @@ bool SfxLockBytesItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8
{
if ( aSeq.getLength() )
{
- SvCacheStream* pStream = new SvCacheStream;
+ SvMemoryStream* pStream = new SvMemoryStream();
pStream->Write( (void*)aSeq.getConstArray(), aSeq.getLength() );
pStream->Seek(0);