sfx2/source/doc/objstor.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 72b5eb77aa3388dc0832ca4f94a8122bb9f66694
Author:     Andrea Gelmini <andrea.gelm...@gelma.net>
AuthorDate: Fri May 31 13:06:38 2024 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri May 31 17:32:49 2024 +0200

    Fix typos
    
    Change-Id: I1abaec8ec9a678d31e62bb685c39e9bc9d406edb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168291
    Tested-by: Julien Nabet <serval2...@yahoo.fr>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index cee4847022ed..6816b7c29613 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -1022,7 +1022,7 @@ void SfxObjectShell::DetectCsvSeparators(SvStream& 
stream, rtl_TextEncoding& eCh
 
         nLinesCount ++;
 
-        // For each character count the lines that contain it and different 
number of occurences.
+        // For each character count the lines that contain it and different 
number of occurrences.
         // And the global maximum for the first statistic.
         for (auto aCurLineChar=aCharsCount.cbegin(); aCurLineChar != 
aCharsCount.cend(); aCurLineChar++)
         {
@@ -1041,7 +1041,7 @@ void SfxObjectShell::DetectCsvSeparators(SvStream& 
stream, rtl_TextEncoding& eCh
                         break;
                 }
                 if (aPrevLineChar == aLinesCharsCount.cend())
-                    aCurStats->second.second ++;// Increment number of 
different number of occurences.
+                    aCurStats->second.second ++;// Increment number of 
different number of occurrences.
 
                 // Update the maximum of number of lines that contain the same 
character. This is a global value.
                 if (nMaxLinesSameChar < aCurStats->second.first)
@@ -1053,14 +1053,14 @@ void SfxObjectShell::DetectCsvSeparators(SvStream& 
stream, rtl_TextEncoding& eCh
         aLinesCharsCount[aLinesCharsCount.size() - 1].swap(aCharsCount);
     }
 
-    // Compute the global minimum of different number of occurences.
+    // Compute the global minimum of different number of occurrences.
     // But only for characters which occur in a maximum number of lines 
(previously computed).
     for (auto it=aStats.cbegin(); it != aStats.cend(); it++)
         if (it->second.first == nMaxLinesSameChar && nMinDiffs > 
it->second.second)
             nMinDiffs = it->second.second;
 
-    // Compute the initial list of separators: those with the maximum lines of 
occurence and
-    // the minimum of different number of occurences.
+    // Compute the initial list of separators: those with the maximum lines of 
occurrence and
+    // the minimum of different number of occurrences.
     for (auto it=aStats.cbegin(); it != aStats.cend(); it++)
         if (it->second.first == nMaxLinesSameChar && it->second.second == 
nMinDiffs)
             sInitSeps += OUStringChar(it->first);

Reply via email to