diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 17:47:00 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 17:47:00 +0000 |
commit | cf6c7fd3c570d439025f0d64f6e56bb39d412c9f (patch) | |
tree | f4d7f371471f196d1e4ff96667d6613634efa053 /app/tree_model.h | |
parent | 3ccfc1e27ca049398bdcadc224f6f74bfeb57bdd (diff) | |
download | chromium_src-cf6c7fd3c570d439025f0d64f6e56bb39d412c9f.zip chromium_src-cf6c7fd3c570d439025f0d64f6e56bb39d412c9f.tar.gz chromium_src-cf6c7fd3c570d439025f0d64f6e56bb39d412c9f.tar.bz2 |
Make GetTitle returns const wstring& instead of wstring and
make it a const method too.
Review URL: http://codereview.chromium.org/126282
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/tree_model.h')
-rw-r--r-- | app/tree_model.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/tree_model.h b/app/tree_model.h index 593f677..f6d8da3 100644 --- a/app/tree_model.h +++ b/app/tree_model.h @@ -20,7 +20,7 @@ class TreeModel; class TreeModelNode { public: // Returns the title for the node. - virtual std::wstring GetTitle() = 0; + virtual const std::wstring& GetTitle() const = 0; }; // Observer for the TreeModel. Notified of significant events to the model. |