summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-16 08:07:06 +0200
committerNoel Grandin <noel@peralex.com>2015-01-16 08:08:44 +0200
commit2f69f6efa0ef3e6647e4a438755c171182a7554c (patch)
tree98dd816a10afe2aed6cf5c085794ac4198b7e906 /sot
parent4c93c341be1425401112eed3581e8b8a6308880d (diff)
remove unnecessary parentheses
left over from "SVStream operator>> to Write method" conversion Change-Id: I619eb743d7890d5c70d0a94e51ce263567fa6f3b
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgelem.cxx2
-rw-r--r--sot/source/sdstor/stgole.cxx8
-rw-r--r--sot/source/sdstor/storinfo.cxx2
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index 2c6cd6245c87..4b29e10c7075 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -164,7 +164,7 @@ bool StgHeader::Store( StgIo& rIo )
.WriteUInt16( nByteOrder ) // 1C Unicode byte order indicator
.WriteInt16( nPageSize ) // 1E 1 << nPageSize = block size
.WriteInt16( nDataPageSize ) // 20 1 << this size == data block size
- .WriteInt32( 0 ).WriteInt32( 0 ).WriteInt16( 0 )
+ .WriteInt32( 0 ).WriteInt32( 0 ).WriteInt16( 0 )
.WriteInt32( nFATSize ) // 2C total number of FAT pages
.WriteInt32( nTOCstrm ) // 30 starting page for the TOC stream
.WriteInt32( nReserved ) // 34
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index 254cfe51277e..f52dff841cd8 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -146,14 +146,14 @@ bool StgCompObjStream::Store()
return false;
Seek( 0L );
OString aAsciiUserName(OUStringToOString(aUserName, RTL_TEXTENCODING_MS_1252));
- WriteInt16( 1 ); // Version?
- WriteInt16( -2 ); // 0xFFFE = Byte Order Indicator
+ WriteInt16( 1 ); // Version?
+ WriteInt16( -2 ); // 0xFFFE = Byte Order Indicator
WriteInt32( 0x0A03 ); // Windows 3.10
WriteInt32( -1L );
WriteClsId( *this, aClsId ); // Class ID
- WriteInt32( (aAsciiUserName.getLength() + 1) );
+ WriteInt32( aAsciiUserName.getLength() + 1 );
WriteCharPtr( (const char *)aAsciiUserName.getStr() );
- WriteUChar( 0 ); // string terminator
+ WriteUChar( 0 ); // string terminator
WriteClipboardFormat( *this, nCbFormat );
WriteInt32( 0 ); // terminator
Commit();
diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx
index 01a02003601e..a12b353e94ae 100644
--- a/sot/source/sdstor/storinfo.cxx
+++ b/sot/source/sdstor/storinfo.cxx
@@ -72,7 +72,7 @@ void WriteClipboardFormat( SvStream & rStm, sal_uLong nFormat )
{
OString aAsciiCbFmt(OUStringToOString(aCbFmt,
RTL_TEXTENCODING_ASCII_US));
- rStm.WriteInt32( (aAsciiCbFmt.getLength() + 1) );
+ rStm.WriteInt32( aAsciiCbFmt.getLength() + 1 );
rStm.WriteCharPtr( (const char *)aAsciiCbFmt.getStr() );
rStm.WriteUChar( 0 );
}
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 6e9243e40b3d..52aec869aff5 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -3164,7 +3164,7 @@ OUString UCBStorage::CreateLinkFile( const OUString& rName )
SvStream* pStream = pTempFile->GetStream( STREAM_STD_READWRITE | StreamMode::TRUNC );
// write header
- pStream->WriteUInt32( 0x04034b50 );
+ pStream->WriteUInt32( 0x04034b50 );
// assemble a new folder name in the destination folder
INetURLObject aObj( rName );