Column: Return const refs rather than string copies

This commit is contained in:
Paul Beckingham 2015-04-04 10:58:55 -04:00
parent 21dc2ec100
commit f1ef53bea0

View file

@ -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; }