mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Column: Return const refs rather than string copies
This commit is contained in:
parent
21dc2ec100
commit
f1ef53bea0
1 changed files with 4 additions and 4 deletions
|
@ -46,10 +46,10 @@ public:
|
|||
bool operator== (const Column&) const; // TODO Is this necessary?
|
||||
virtual ~Column ();
|
||||
|
||||
std::string name () const { return _name; }
|
||||
std::string style () const { return _style; }
|
||||
std::string label () const { return _label; }
|
||||
std::string type () const { return _type; }
|
||||
const std::string& name () const { return _name; }
|
||||
const std::string& style () const { return _style; }
|
||||
const std::string& label () const { return _label; }
|
||||
const std::string& type () const { return _type; }
|
||||
bool modifiable () const { return _modifiable; }
|
||||
bool is_uda () const { return _uda; }
|
||||
std::vector <std::string> styles () const { return _styles; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue