diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-16 08:07:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-16 08:08:44 +0200 |
commit | 2f69f6efa0ef3e6647e4a438755c171182a7554c (patch) | |
tree | 98dd816a10afe2aed6cf5c085794ac4198b7e906 /sc | |
parent | 4c93c341be1425401112eed3581e8b8a6308880d (diff) |
remove unnecessary parentheses
left over from "SVStream operator>> to Write method" conversion
Change-Id: I619eb743d7890d5c70d0a94e51ce263567fa6f3b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/autoform.cxx | 15 | ||||
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx index ac81ac5b0d2b..a6c5e3ffa562 100644 --- a/sc/source/core/tool/autoform.cxx +++ b/sc/source/core/tool/autoform.cxx @@ -790,18 +790,17 @@ bool ScAutoFormatData::Load( SvStream& rStream, const ScAfVersions& rVersions ) bool ScAutoFormatData::Save(SvStream& rStream, sal_uInt16 fileVersion) { sal_uInt16 nVal = AUTOFORMAT_DATA_ID; - bool b; rStream.WriteUInt16( nVal ); // --- from 680/dr25 on: store strings as UTF-8 write_uInt16_lenPrefixed_uInt8s_FromOUString(rStream, aName, RTL_TEXTENCODING_UTF8); rStream.WriteUInt16( nStrResId ); - rStream.WriteUChar( ( b = bIncludeFont ) ); - rStream.WriteUChar( ( b = bIncludeJustify ) ); - rStream.WriteUChar( ( b = bIncludeFrame ) ); - rStream.WriteUChar( ( b = bIncludeBackground ) ); - rStream.WriteUChar( ( b = bIncludeValueFormat ) ); - rStream.WriteUChar( ( b = bIncludeWidthHeight ) ); + rStream.WriteUChar( bIncludeFont ); + rStream.WriteUChar( bIncludeJustify ); + rStream.WriteUChar( bIncludeFrame ); + rStream.WriteUChar( bIncludeBackground ); + rStream.WriteUChar( bIncludeValueFormat ); + rStream.WriteUChar( bIncludeWidthHeight ); if (fileVersion >= SOFFICE_FILEFORMAT_50) WriteAutoFormatSwBlob( rStream, m_swFields ); @@ -1091,7 +1090,7 @@ bool ScAutoFormat::Save() bRet &= (rStream.GetError() == 0); - rStream.WriteUInt16( (maData.size() - 1) ); + rStream.WriteUInt16( maData.size() - 1 ); bRet &= (rStream.GetError() == 0); MapType::iterator it = maData.begin(), itEnd = maData.end(); if (it != itEnd) diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 4d8817480935..8ca7598589ec 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -320,7 +320,7 @@ bool ScImportExport::ExportString( OUString& rText, sal_uLong nFmt ) // mba: no BaseURL for data exc if( ExportStream( aStrm, OUString(), nFmt ) ) { - aStrm.WriteUInt16( 0 ); + aStrm.WriteUInt16( 0 ); aStrm.Seek( STREAM_SEEK_TO_END ); rText = OUString( (const sal_Unicode*) aStrm.GetData() ); |