summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 23:15:46 +0000
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 23:15:46 +0000
commit0298caf89fba204a98fde729fb5d11236f62ebc5 (patch)
treee64088a23332ecfb01309e1f50bd213553feaf04 /ui
parent2346e11b8a7166efb5b63a8823854f8b06f6352d (diff)
downloadchromium_src-0298caf89fba204a98fde729fb5d11236f62ebc5.zip
chromium_src-0298caf89fba204a98fde729fb5d11236f62ebc5.tar.gz
chromium_src-0298caf89fba204a98fde729fb5d11236f62ebc5.tar.bz2
Coverity: Fixing pass by value bugs
CID= 101435, 101591, 101592, 101512, 100534 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8965046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/render_text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 4329a2c..d59be09 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -117,7 +117,7 @@ class UI_EXPORT RenderText {
void set_focused(bool focused) { focused_ = focused; }
const StyleRange& default_style() const { return default_style_; }
- void set_default_style(StyleRange style) { default_style_ = style; }
+ void set_default_style(const StyleRange& style) { default_style_ = style; }
const Rect& display_rect() const { return display_rect_; }
void SetDisplayRect(const Rect& r);