summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility_events.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 18:49:58 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 18:49:58 +0000
commit3a1275d5f449608b95f131d693c2e9b2f9d10a2a (patch)
treead166bd5a1987958a250bce3f3fbbfa9f14d415d /chrome/browser/accessibility_events.h
parentaa3250ce8045286f822ca88f05eb072e823e985d (diff)
downloadchromium_src-3a1275d5f449608b95f131d693c2e9b2f9d10a2a.zip
chromium_src-3a1275d5f449608b95f131d693c2e9b2f9d10a2a.tar.gz
chromium_src-3a1275d5f449608b95f131d693c2e9b2f9d10a2a.tar.bz2
Coverity: Pass parameters by reference.
CID=12947,13008,13087,13144,13280,13479,13480,13574,13575,13576,13580,13594, 13595,14186,14351 BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/6733043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility_events.h')
-rw-r--r--chrome/browser/accessibility_events.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/accessibility_events.h b/chrome/browser/accessibility_events.h
index 47d50fb..73a074d 100644
--- a/chrome/browser/accessibility_events.h
+++ b/chrome/browser/accessibility_events.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -193,7 +193,8 @@ class AccessibilityTextBoxInfo : public AccessibilityControlInfo {
virtual void SerializeToDict(DictionaryValue* dict) const;
- void SetValue(std::string value, int selection_start, int selection_end) {
+ void SetValue(
+ const std::string& value, int selection_start, int selection_end) {
value_ = value;
selection_start_ = selection_start;
selection_end_ = selection_end;