[Libreoffice-commits] core.git: include/unotools unotools/source

Johnny_M (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 31 13:37:26 UTC 2020


 include/unotools/textsearch.hxx     |    4 ++--
 unotools/source/i18n/textsearch.cxx |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit fd7e4706d80d1769803b7b4ac57df4c80a5c80f2
Author:     Johnny_M <klasse at partyheld.de>
AuthorDate: Fri Mar 27 14:14:11 2020 +0100
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Tue Mar 31 15:36:50 2020 +0200

    Translate German variable names
    
    Ende -> End
    
    Change-Id: Ia3df5ee48e0d61051d99ac93e62c8a6dceafb41d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91218
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>

diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx
index 14a9558f237e..68af444d8023 100644
--- a/include/unotools/textsearch.hxx
+++ b/include/unotools/textsearch.hxx
@@ -183,7 +183,7 @@ public:
     /* search in the (selected) text the search string:
         rScrTxt - the text, in which we search
         pStart  - start position for the search
-        pEnde   - end position for the search
+        pEnd    - end position for the search
 
         RETURN values   ==  true: something is found
                         - pStart start pos of the found text,
@@ -192,7 +192,7 @@ public:
                              positions. Is only filled with more positions
                              if the regular expression handles groups.
 
-                        == false: nothing found, pStart,pEnde unchanged.
+                        == false: nothing found, pStart, pEnd unchanged.
 
         Definitions: start pos always inclusive, end pos always exclusive!
                      The position must always in the right direction!
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index 2a657109b110..42b995f7051c 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -274,14 +274,14 @@ bool TextSearch::searchForward( const OUString &rStr )
 }
 
 bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart,
-                                sal_Int32* pEnde, SearchResult* pRes )
+                                sal_Int32* pEnd, SearchResult* pRes )
 {
     bool bRet = false;
     try
     {
         if( xTextSearch.is() )
         {
-            SearchResult aRet( xTextSearch->searchBackward( rStr, *pStart, *pEnde ));
+            SearchResult aRet( xTextSearch->searchBackward( rStr, *pStart, *pEnd ));
             if( aRet.subRegExpressions )
             {
                 bRet = true;
@@ -289,7 +289,7 @@ bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart,
                 // and the endposition is always exclusive.
                 // The caller of this function will have in startPos the
                 // lower pos. and end
-                *pEnde = aRet.startOffset[ 0 ];
+                *pEnd = aRet.startOffset[ 0 ];
                 *pStart = aRet.endOffset[ 0 ];
                 if( pRes )
                     *pRes = aRet;


More information about the Libreoffice-commits mailing list