[Libreoffice] [PATCH] convert BOOL to bool in class SwAutoCompleteWord

nthiebaud at gmail.com nthiebaud at gmail.com
Thu Sep 30 00:09:11 PDT 2010


---
 sw/inc/acmplwrd.hxx         |    6 +++---
 sw/source/ui/app/docsh2.cxx |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index 94ab1f8..53f1f04 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 b0ae693..30fa699 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() );
-- 
1.7.1



More information about the LibreOffice mailing list