diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 19:23:08 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 19:23:08 +0000 |
commit | 7f40fc5b4f5696348daa96b2104eaab93931eb72 (patch) | |
tree | bcb440b1569eb4aaaf089774468fca9fdbc374f8 /webkit | |
parent | c2512482d0708c7a00307650194634e51b9beb60 (diff) | |
download | chromium_src-7f40fc5b4f5696348daa96b2104eaab93931eb72.zip chromium_src-7f40fc5b4f5696348daa96b2104eaab93931eb72.tar.gz chromium_src-7f40fc5b4f5696348daa96b2104eaab93931eb72.tar.bz2 |
Use pointers instead of references in SpellCheck function.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/126054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18304 0039d316-1c4b-4281-b951-d872f2087c98
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, |