diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-08 19:48:36 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-08 20:11:09 +0100 |
commit | effeb08efd1746a6a2d911452f38dc9c49685548 (patch) | |
tree | 7d5b86b7d53b4996ba8c6a38a3fb5ecf0ad4b7ff /oox | |
parent | 717e3912ed94a10c9405ac11c08eff6caba107ea (diff) |
Kill SvNullStream duplication
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/vmlexport.cxx | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 554d49faae53..19123815dc79 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -45,27 +45,8 @@ using rtl::OUStringBuffer; using namespace sax_fastparser; using namespace oox::vml; -/// Implementation of an empty stream that silently succeeds, but does nothing. -/// -/// In fact, this is a hack. The right solution is to abstract EscherEx to be -/// able to work without SvStream; but at the moment it is better to live with -/// this I guess. -class SvNullStream : public SvStream -{ -protected: - virtual sal_Size GetData( void* pData, sal_Size nSize ) { memset( pData, 0, nSize ); return nSize; } - virtual sal_Size PutData( const void*, sal_Size nSize ) { return nSize; } - virtual sal_Size SeekPos( sal_Size nPos ) { return nPos; } - virtual void SetSize( sal_Size ) {} - virtual void FlushData() {} - -public: - SvNullStream() : SvStream() {} - virtual ~SvNullStream() {} -}; - VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr pSerializer ) - : EscherEx( EscherExGlobalRef(new EscherExGlobal(0)), *( new SvNullStream ) ), + : EscherEx( EscherExGlobalRef(new EscherExGlobal(0)), 0 ), m_pSerializer( pSerializer ), m_pShapeAttrList( NULL ), m_nShapeType( ESCHER_ShpInst_Nil ), |