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

Unified Diff: ui/views/controls/label.h

Issue 11068012: Add new views::LabelButton and LabelButtonBorder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename LabelButtonBorder, remove GetLabel, etc. Created 8 years, 2 months 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
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index 92f3007a8c5f274f111836253ca8ddec99c81014..03086180cac9867eacbca615ad261e6b40949873 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -74,7 +74,7 @@ class VIEWS_EXPORT Label : public View {
gfx::Font font() const { return font_; }
// Returns the label text.
- string16 text() const { return text_; };
+ const string16& text() const { return text_; };
// Enables or disables auto-color-readability (enabled by default). If this
// is enabled, then calls to set any foreground or background color will

Powered by Google App Engine
This is Rietveld 408576698