diff options
-rw-r--r-- | chrome/renderer/render_view.cc | 8 | ||||
-rw-r--r-- | chrome/renderer/render_view.h | 4 | ||||
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 2 | ||||
-rw-r--r-- | webkit/glue/webview_delegate.h | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index be5f09d..113ca88 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2184,10 +2184,10 @@ bool RenderView::WasOpenedByUserGesture() const { return opened_by_user_gesture_; } -void RenderView::SpellCheck(const std::wstring& word, int& misspell_location, - int& misspell_length) { - Send(new ViewHostMsg_SpellCheck(routing_id_, word, &misspell_location, - &misspell_length)); +void RenderView::SpellCheck(const std::wstring& word, int* misspell_location, + int* misspell_length) { + Send(new ViewHostMsg_SpellCheck(routing_id_, word, misspell_location, + misspell_length)); } std::wstring RenderView::GetAutoCorrectWord( diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index ac315f5..237b79c 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -313,8 +313,8 @@ class RenderView : public RenderWidget, const WebKit::WebRect& selection); virtual bool WasOpenedByUserGesture() const; virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); - virtual void SpellCheck(const std::wstring& word, int& misspell_location, - int& misspell_length); + virtual void SpellCheck(const std::wstring& word, int* misspell_location, + int* misspell_length); virtual std::wstring GetAutoCorrectWord(const std::wstring& word); virtual void SetInputMethodState(bool enabled); virtual void ScriptedPrint(WebFrame* frame); 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, |