summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 19:23:08 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 19:23:08 +0000
commit7f40fc5b4f5696348daa96b2104eaab93931eb72 (patch)
treebcb440b1569eb4aaaf089774468fca9fdbc374f8 /chrome
parentc2512482d0708c7a00307650194634e51b9beb60 (diff)
downloadchromium_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 'chrome')
-rw-r--r--chrome/renderer/render_view.cc8
-rw-r--r--chrome/renderer/render_view.h4
2 files changed, 6 insertions, 6 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);