summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-09-30 10:06:39 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-09-30 10:09:05 +0200
commitc88523c9b2171c0b70a51142d8dbd456b8c36f4c (patch)
tree38eaa0080f24452c49b71b72295bedf330cddb53
parentd8515eef7bf87e506e5c6b0ebd13cd18151292cf (diff)
Convert BOOL to bool in SwAutoCompleteWord
-rw-r--r--sw/inc/acmplwrd.hxx6
-rw-r--r--sw/source/ui/app/docsh2.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index 94ab1f89e4..2d729c4779 100644
--- a/sw/inc/acmplwrd.hxx
+++ b/sw/inc/acmplwrd.hxx
@@ -44,7 +44,7 @@ class SwAutoCompleteWord
SwAutoCompleteWord_Impl* pImpl;
USHORT nMaxCount, nMinWrdLen;
- BOOL bLockWordLst;
+ bool bLockWordLst;
void DocumentDying(const SwDoc& rDoc);
public:
@@ -57,8 +57,8 @@ public:
const String& operator[]( USHORT n ) const { return *aWordLst[ n ]; }
- BOOL IsLockWordLstLocked() const { return bLockWordLst; }
- void SetLockWordLstLocked( BOOL bFlag ) { bLockWordLst = bFlag; }
+ bool IsLockWordLstLocked() const { return bLockWordLst; }
+ void SetLockWordLstLocked( bool bFlag ) { bLockWordLst = bFlag; }
void SetMaxCount( USHORT n );
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index b0ae69370f..30fa6999cc 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -639,10 +639,10 @@ void SwDocShell::Execute(SfxRequest& rReq)
SvxSwAutoFmtFlags* pAFlags = &SvxAutoCorrCfg::Get()->GetAutoCorrect()->GetSwFlags();
SwAutoCompleteWord& rACW = SwDoc::GetAutoCompleteWords();
- BOOL bOldLocked = rACW.IsLockWordLstLocked(),
+ bool bOldLocked = rACW.IsLockWordLstLocked(),
bOldAutoCmpltCollectWords = pAFlags->bAutoCmpltCollectWords;
- rACW.SetLockWordLstLocked( TRUE );
+ rACW.SetLockWordLstLocked( true );
SvStringsISortDtor aTmpLst;
aTmpLst.Insert( &rACW.GetWordList() );