diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-27 11:55:19 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-28 08:56:59 -0400 |
commit | fda6174113664335edb53b5c566e0ff245c43ad9 (patch) | |
tree | 00d91478ef83f20ca756e98f4c8b0ec92cb6d04c /editeng | |
parent | a1feb649d9e2575ec4558a2846669a809233f301 (diff) |
IsInValid() => IsValid() and adjust its call sites.
Change-Id: Ic2c6f574632092073eb30c1a52d43a1524b12aaf
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 8 | ||||
-rw-r--r-- | editeng/source/editeng/edtspell.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index 6f59fd8f4e50..001a2dc49bf6 100644 --- a/editeng/source/editeng/edtspell.cxx +++ b/editeng/source/editeng/edtspell.cxx @@ -207,9 +207,9 @@ WrongList::WrongList(const WrongList& r) : WrongList::~WrongList() {} -bool WrongList::IsInvalid() const +bool WrongList::IsValid() const { - return nInvalidStart != Valid; + return nInvalidStart == Valid; } void WrongList::SetValid() @@ -228,7 +228,7 @@ void WrongList::MarkInvalid( sal_uInt16 nS, sal_uInt16 nE ) void WrongList::TextInserted( sal_uInt16 nPos, sal_uInt16 nNew, sal_Bool bPosIsSep ) { - if ( !IsInvalid() ) + if (IsValid()) { nInvalidStart = nPos; nInvalidEnd = nPos+nNew; @@ -298,7 +298,7 @@ void WrongList::TextInserted( sal_uInt16 nPos, sal_uInt16 nNew, sal_Bool bPosIsS void WrongList::TextDeleted( sal_uInt16 nPos, sal_uInt16 nDeleted ) { sal_uInt16 nEndChanges = nPos+nDeleted; - if ( !IsInvalid() ) + if (IsValid()) { sal_uInt16 nNewInvalidStart = nPos ? nPos - 1 : 0; nInvalidStart = nNewInvalidStart; diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx index 92e0ad694303..6b86d30e6574 100644 --- a/editeng/source/editeng/edtspell.hxx +++ b/editeng/source/editeng/edtspell.hxx @@ -91,7 +91,7 @@ public: WrongList(const WrongList& r); ~WrongList(); - bool IsInvalid() const; + bool IsValid() const; void SetValid(); void MarkInvalid( sal_uInt16 nS, sal_uInt16 nE ); diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 6e17bd1821bf..8b2a7d1bea83 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2251,7 +2251,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, sal_Bool bSpel if ( pThisNodeOnly ) pNode = pThisNodeOnly; - if ( pNode->GetWrongList()->IsInvalid() ) + if (!pNode->GetWrongList()->IsValid()) { WrongList* pWrongList = pNode->GetWrongList(); sal_uInt16 nInvStart = pWrongList->GetInvalidStart(); |