diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 14:55:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 15:20:43 +0200 |
commit | 9f23260105672903a047c2194a36ebd448fff135 (patch) | |
tree | 9408d894cebb45123235ae8a86700a0f8686d7af /svx | |
parent | Clean up conversions from ScBreakType (aka sal_uInt8) to bool (diff) | |
download | core-9f23260105672903a047c2194a36ebd448fff135.tar.gz core-9f23260105672903a047c2194a36ebd448fff135.zip |
SvStream: WriteUChar -> WriteBool
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galobj.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 4 | ||||
-rw-r--r-- | svx/source/items/pageitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx index 3205a9ca0927..35a35efbd16a 100644 --- a/svx/source/gallery2/galobj.cxx +++ b/svx/source/gallery2/galobj.cxx @@ -174,7 +174,7 @@ void SgaObject::WriteData( SvStream& rOut, const OUString& rDestDir ) const static const sal_uInt32 nInventor = COMPAT_FORMAT( 'S', 'G', 'A', '3' ); rOut.WriteUInt32( nInventor ).WriteUInt16( 0x0004 ).WriteUInt16( GetVersion() ).WriteUInt16( GetObjKind() ); - rOut.WriteUChar( bIsThumbBmp ); + rOut.WriteBool( bIsThumbBmp ); if( bIsThumbBmp ) { diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index f037a0b9fc44..b3e2c39d477a 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -1346,7 +1346,7 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const << m_aDestDir << "' in '" << aPath << "'"); } - rOStm.WriteUChar( bRel ); + rOStm.WriteBool( bRel ); write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStm, aPath, RTL_TEXTENCODING_UTF8); rOStm.WriteUInt32( pObj->nOffset ).WriteUInt16( pObj->eObjKind ); } @@ -1358,7 +1358,7 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const const long nReservePos = rOStm.Tell(); boost::scoped_ptr<VersionCompat> pCompat(new VersionCompat( rOStm, StreamMode::WRITE, 2 )); - rOStm.WriteUInt32( GetId() ).WriteUChar( IsThemeNameFromResource() ); // From version 2 and up + rOStm.WriteUInt32( GetId() ).WriteBool( IsThemeNameFromResource() ); // From version 2 and up pCompat.reset(); diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx index 1ebbdeaa8e9a..b92e9469fea3 100644 --- a/svx/source/items/pageitem.cxx +++ b/svx/source/items/pageitem.cxx @@ -246,7 +246,7 @@ SvStream& SvxPageItem::Store( SvStream &rStrm, sal_uInt16 /*nItemVersion*/ ) con // UNICODE: rStrm << aDescName; rStrm.WriteUniOrByteString(aDescName, rStrm.GetStreamCharSet()); - rStrm.WriteUChar( eNumType ).WriteUChar( bLandscape ).WriteUInt16( eUse ); + rStrm.WriteUChar( eNumType ).WriteBool( bLandscape ).WriteUInt16( eUse ); return rStrm; } diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 4bd62acbf29a..408a694623dc 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -1405,7 +1405,7 @@ SvStream& SdrTextFixedCellHeightItem::Store( SvStream& rOut, sal_uInt16 nItemVer if ( nItemVersion ) { bool bValue = GetValue(); - rOut.WriteUChar( bValue ); + rOut.WriteBool( bValue ); } return rOut; } |