[Libreoffice] [PATCH] convert BOOL to bool in class SwAutoCompleteWord
Cédric Bosdonnat
cedric.bosdonnat.ooo at free.fr
Thu Sep 30 01:15:08 PDT 2010
Hi Norbert,
Thanks for the patch, I pushed it.
--
Cedric
On Thu, 2010-09-30 at 02:09 -0500, nthiebaud at gmail.com wrote:
> ---
> 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() );
--
Cédric Bosdonnat
LibreOffice hacker
http://documentfoundation.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr
More information about the LibreOffice
mailing list