diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 16:30:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 08:31:52 +0200 |
commit | 13341ffa49d58f313a05edae4f4f04c215658e9f (patch) | |
tree | 8e2e46f6a83f5e0fa1b09ea160b152f53be5b0ac /editeng | |
parent | a1ead1a0281a369087f1b2cce09431542c29bece (diff) |
teach unnecessaryparen plugin about other kinds of statements
i.e. do / while / switch
Change-Id: Id0985015cc425557f9984734701d56466f8a6088
Reviewed-on: https://gerrit.libreoffice.org/39601
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 4e284d35e82f..0aae2172e881 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2285,7 +2285,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC EditPaM aPaM( pNode, nInvStart ); EditSelection aSel( aPaM, aPaM ); - while ( ( aSel.Max().GetNode() == pNode ) /* && !bStop */ ) + while ( aSel.Max().GetNode() == pNode ) { if ( ( static_cast<size_t>(aSel.Min().GetIndex()) > nInvEnd ) || ( ( aSel.Max().GetNode() == pLastNode ) && ( aSel.Max().GetIndex() >= pLastNode->Len() ) ) ) |