summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-27 14:25:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-27 14:29:52 +0100
commitb100342d42a15a3aed79d6f23ecfd0b56e4a86bf (patch)
tree1f42eb2ac7a6976e3ad31e577d05724e6d88e4da /tools
parenta9a9b8155f65421fa8cb2bf108b847f212462f4f (diff)
Remove odd check that writeUInt32 indeed writes four bytes
If you look at the oldest available version of SvPersistStream::WriteDummyLen in 8ab086b6cc054501bfbf7ef6fa509c393691e860 "initial import", it looks like there was an issue with whetever earlier way was used to reserve a four-byte space in the stream with "Sun sp" (whatever that shall mean). Change-Id: I861a445ae72f1ced502f70917707336eb5dddf04
Diffstat (limited to 'tools')
-rw-r--r--tools/source/ref/pstm.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index 4bd0d80bd1e0..3a7435de81bf 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -244,17 +244,7 @@ void SvPersistStream::WriteCompressed( SvStream & rStm, sal_uInt32 nVal )
*/
sal_uInt32 SvPersistStream::WriteDummyLen()
{
-#ifdef DBG_UTIL
- sal_uInt32 nPos = Tell();
-#endif
- sal_uInt32 n0 = 0;
- WriteUInt32( n0 ); // Because of Sun sp
- // Don't assert on stream error
-#ifdef DBG_UTIL
- DBG_ASSERT( GetError() != SVSTREAM_OK
- || (sizeof( sal_uInt32 ) == Tell() -nPos),
- "No 4 byte as length parameter" );
-#endif
+ WriteUInt32( 0 );
return Tell();
}