summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par3.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-17 15:06:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-17 15:20:47 +0200
commitd881bde066a891c921feafe0a06c568e6c3efb0f (patch)
tree9b4ecea4a349c9039c91e8a317fe1fda149d1895 /sw/source/filter/ww8/ww8par3.cxx
parent9b77b33a2dbdbb3e44a51742f0bcb7dcdea4db52 (diff)
loplugin:implicitboolconversion clean-up
Change-Id: I049b2eec5b2201f4056bb6e7b9b97e7763e5e214
Diffstat (limited to 'sw/source/filter/ww8/ww8par3.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index f085e7feec19..9f7415f11c42 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -332,8 +332,8 @@ struct WW8LST // nur DIE Eintraege, die WIR benoetigen!
// nIStDNil if no style linked
sal_uInt32 nIdLst; // Unique List ID
sal_uInt32 nTplC; // Unique template code - Was ist das bloss?
- sal_uInt8 bSimpleList:1; // Flag: Liste hat nur EINEN Level
- sal_uInt8 bRestartHdn:1; // WW6-Kompatibilitaets-Flag:
+ bool bSimpleList:1; // Flag: Liste hat nur EINEN Level
+ bool bRestartHdn:1; // WW6-Kompatibilitaets-Flag:
// true if the list should start numbering over
}; // at the beginning of each section
@@ -380,11 +380,11 @@ struct WW8LFOLVL
// dieses Byte ist _absichtlich_ nicht in das folgende Byte hineingepackt !!
// (siehe Kommentar unten bei struct WW8LFOInfo)
- sal_uInt8 bStartAt :1; // true if the start-at value is overridden
- sal_uInt8 bFormat :1; // true if the formatting is overridden
+ bool bStartAt :1; // true if the start-at value is overridden
+ bool bFormat :1; // true if the formatting is overridden
WW8LFOLVL() :
- nStartAt(1), nLevel(0), bStartAt(1), bFormat(0) {}
+ nStartAt(1), nLevel(0), bStartAt(true), bFormat(false) {}
};
// in den ListenInfos zu speichernde Daten
@@ -398,13 +398,13 @@ struct WW8LSTInfo // sortiert nach nIdLst (in WW8 verwendete Listen-Id)
SwNumRule* pNumRule; // Zeiger auf entsprechende Listenvorlage im Writer
sal_uInt32 nIdLst; // WW8Id dieser Liste
- sal_uInt8 bSimpleList:1;// Flag, ob diese NumRule nur einen Level verwendet
- sal_uInt8 bUsedInDoc :1;// Flag, ob diese NumRule im Doc verwendet wird,
+ bool bSimpleList:1;// Flag, ob diese NumRule nur einen Level verwendet
+ bool bUsedInDoc :1;// Flag, ob diese NumRule im Doc verwendet wird,
// oder beim Reader-Ende geloescht werden sollte
WW8LSTInfo(SwNumRule* pNumRule_, WW8LST& aLST)
: pNumRule(pNumRule_), nIdLst(aLST.nIdLst),
- bSimpleList(aLST.bSimpleList), bUsedInDoc(0)
+ bSimpleList(aLST.bSimpleList), bUsedInDoc(false)
{
memcpy( aIdSty, aLST.aIdSty, sizeof( aIdSty ));
memset(&aItemSet, 0, sizeof( aItemSet ));
@@ -429,12 +429,12 @@ struct WW8LFOInfo // unsortiert, d.h. Reihenfolge genau wie im WW8 Stream
// Byte mit hineinpacken, doch waere das eine ziemliche Fehlerquelle,
// an dem Tag, wo MS ihr Listenformat auf mehr als 15 Level aufbohren.
- sal_uInt8 bOverride :1;// Flag, ob die NumRule nicht in maLSTInfos steht,
+ bool bOverride :1;// Flag, ob die NumRule nicht in maLSTInfos steht,
// sondern fuer pLFOInfos NEU angelegt wurde
- sal_uInt8 bSimpleList:1;// Flag, ob diese NumRule nur einen Level verwendet
- sal_uInt8 bUsedInDoc :1;// Flag, ob diese NumRule im Doc verwendet wird,
+ bool bSimpleList:1;// Flag, ob diese NumRule nur einen Level verwendet
+ bool bUsedInDoc :1;// Flag, ob diese NumRule im Doc verwendet wird,
// oder beim Reader-Ende geloescht werden sollte
- sal_uInt8 bLSTbUIDSet :1;// Flag, ob bUsedInDoc in maLSTInfos gesetzt wurde,
+ bool bLSTbUIDSet :1;// Flag, ob bUsedInDoc in maLSTInfos gesetzt wurde,
// und nicht nochmals gesetzt zu werden braucht
WW8LFOInfo(const WW8LFO& rLFO);
};
@@ -447,8 +447,8 @@ WW8LFOInfo::WW8LFOInfo(const WW8LFO& rLFO)
, nLfoLvl(rLFO.nLfoLvl)
, bOverride(rLFO.nLfoLvl ? true : false)
, bSimpleList(rLFO.bSimpleList)
- , bUsedInDoc(0)
- , bLSTbUIDSet(0)
+ , bUsedInDoc(false)
+ , bLSTbUIDSet(false)
{
}
@@ -518,9 +518,9 @@ bool WW8ListManager::ReadLVL(SwNumFmt& rNumFmt, SfxItemSet*& rpItemSet,
rSt.ReadUChar( aBits1 );
if( 0 != rSt.GetError() ) return false;
aLVL.nAlign = (aBits1 & 0x03);
- if( aBits1 & 0x10 ) aLVL.bV6Prev = true;
- if( aBits1 & 0x20 ) aLVL.bV6PrSp = true;
- if( aBits1 & 0x40 ) aLVL.bV6 = true;
+ if( aBits1 & 0x10 ) aLVL.bV6Prev = sal_uInt8(true);
+ if( aBits1 & 0x20 ) aLVL.bV6PrSp = sal_uInt8(true);
+ if( aBits1 & 0x40 ) aLVL.bV6 = sal_uInt8(true);
bool bLVLOkB = true;
sal_uInt8 nLevelB = 0;
for(nLevelB = 0; nLevelB < nMaxLevel; ++nLevelB)