diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 2 | ||||
-rw-r--r-- | webkit/glue/webview_delegate.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index 04f7321..f2575c8 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -851,7 +851,7 @@ void EditorClientImpl::checkSpellingOfString(const UChar* str, int length, if (isContinuousSpellCheckingEnabled() && d) { std::wstring word = webkit_glue::StringToStdWString(WebCore::String(str, length)); - d->SpellCheck(word, spell_location, spell_length); + d->SpellCheck(word, &spell_location, &spell_length); } else { spell_location = 0; spell_length = 0; diff --git a/webkit/glue/webview_delegate.h b/webkit/glue/webview_delegate.h index c75e1fc..9c658e2 100644 --- a/webkit/glue/webview_delegate.h +++ b/webkit/glue/webview_delegate.h @@ -779,9 +779,9 @@ class WebViewDelegate : virtual public WebWidgetDelegate { // indices (inclusive) will be filled with the offsets of the boundary of the // word within the given buffer. The out pointers must be specified. If the // word is correctly spelled (returns true), they will be set to (0,0). - virtual void SpellCheck(const std::wstring& word, int& misspell_location, - int& misspell_length) { - misspell_location = misspell_length = 0; + virtual void SpellCheck(const std::wstring& word, int* misspell_location, + int* misspell_length) { + *misspell_location = *misspell_length = 0; } // Computes an auto correct word for a misspelled word. If no word is found, |