Index: Source/core/editing/TextCheckingHelper.cpp |
diff --git a/Source/core/editing/TextCheckingHelper.cpp b/Source/core/editing/TextCheckingHelper.cpp |
index 3a35783430975b388015dcea04bb974b389cf418..88d171b89fe630dcbd1dfa054d85031acf754a65 100644 |
--- a/Source/core/editing/TextCheckingHelper.cpp |
+++ b/Source/core/editing/TextCheckingHelper.cpp |
@@ -410,7 +410,7 @@ String TextCheckingHelper::findFirstMisspellingOrBadGrammar(bool checkGrammar, b |
return firstFoundItem; |
} |
-int TextCheckingHelper::findFirstGrammarDetail(const Vector<GrammarDetail>& grammarDetails, int badGrammarPhraseLocation, int /*badGrammarPhraseLength*/, int startOffset, int endOffset, bool markAll) |
+int TextCheckingHelper::findFirstGrammarDetail(const Vector<GrammarDetail>& grammarDetails, int badGrammarPhraseLocation, int startOffset, int endOffset, bool markAll) const |
{ |
// Found some bad grammar. Find the earliest detail range that starts in our search range (if any). |
// Optionally add a DocumentMarker for each detail in the range. |
@@ -479,7 +479,7 @@ String TextCheckingHelper::findFirstBadGrammar(GrammarDetail& outGrammarDetail, |
// Found some bad grammar. Find the earliest detail range that starts in our search range (if any). |
- int badGrammarIndex = findFirstGrammarDetail(grammarDetails, badGrammarPhraseLocation, badGrammarPhraseLength, paragraph.checkingStart(), paragraph.checkingEnd(), markAll); |
+ int badGrammarIndex = findFirstGrammarDetail(grammarDetails, badGrammarPhraseLocation, paragraph.checkingStart(), paragraph.checkingEnd(), markAll); |
if (badGrammarIndex >= 0) { |
ASSERT(static_cast<unsigned>(badGrammarIndex) < grammarDetails.size()); |
outGrammarDetail = grammarDetails[badGrammarIndex]; |