diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/tree_model.h | 2 | ||||
-rw-r--r-- | app/tree_node_model.h | 2 |
2 files changed, 2 insertions, 2 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. diff --git a/app/tree_node_model.h b/app/tree_node_model.h index 69d5c8d..7767d49 100644 --- a/app/tree_node_model.h +++ b/app/tree_node_model.h @@ -131,7 +131,7 @@ class TreeNode : public TreeModelNode { } // Returns the title of the node. - std::wstring GetTitle() { + virtual const std::wstring& GetTitle() const { return title_; } |