diff options
author | Colomban Wendling <cwendling@hypra.fr> | 2023-05-10 11:39:12 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-05-17 16:19:00 +0200 |
commit | 1fe4d37caa983dea9815082e3e955337a03034e9 (patch) | |
tree | c25554e8a0c7d0084216ed170dc6382ba3cb7960 | |
parent | 24b1631dfd1c0701f13a10378580836c8862cdc4 (diff) |
sw a11y: Replace some uses of magic numbers with proper constants
Change-Id: I61b1924c22a66a08ac165546811daeaf20176954
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151650
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 832afcd02859..d00a49d10227 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -2326,7 +2326,7 @@ OUString SwAccessibleParagraph::getTextRange( } // now skip to previous word - if (nTextType==2 || nTextType == 3) + if (nTextType == AccessibleTextType::WORD || nTextType == AccessibleTextType::SENTENCE) { i18n::Boundary preBound = aBound; while(preBound.startPos==aBound.startPos && nIndex > 0) @@ -2409,7 +2409,7 @@ OUString SwAccessibleParagraph::getTextRange( sal_Bool bWord = sal_False; bWord = GetTextBoundary( aBound, rText, nIndex, nTextType ); - if (nTextType==2) + if (nTextType == AccessibleTextType::WORD) { Boundary nexBound=aBound; |