Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: ui/gfx/render_text.h

Issue 8965046: Coverity: Fixing pass by value bugs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing 100534 Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 9f13be454cf9da9948baca8c346335a0bbaaa25d..ac265f7c718ac14940036e6e8fca5e537bad1bc1 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -126,7 +126,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);
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698