diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-05-07 09:19:08 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-05-07 09:19:08 (GMT) |
commit | 2dd59db4ae815e2e6e487e4c0078d3dc495e95f0 (patch) | |
tree | ccc8110e80071e743f5c536e4910886d2feef345 /Swiften/Roster/RosterItem.cpp | |
parent | 5409f27bbc3b32a65b2feed3259b1cc15da888a3 (diff) | |
download | swift-contrib-2dd59db4ae815e2e6e487e4c0078d3dc495e95f0.zip swift-contrib-2dd59db4ae815e2e6e487e4c0078d3dc495e95f0.tar.bz2 |
Sort the roster
Diffstat (limited to 'Swiften/Roster/RosterItem.cpp')
-rw-r--r-- | Swiften/Roster/RosterItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Roster/RosterItem.cpp b/Swiften/Roster/RosterItem.cpp index 7229199..3ce13b4 100644 --- a/Swiften/Roster/RosterItem.cpp +++ b/Swiften/Roster/RosterItem.cpp @@ -10,7 +10,7 @@ namespace Swift { -RosterItem::RosterItem(const String& name, GroupRosterItem* parent) : name_(name), parent_(parent) { +RosterItem::RosterItem(const String& name, GroupRosterItem* parent) : name_(name), sortableDisplayName_(name_.getLowerCase()), parent_(parent) { /* The following would be good, but because of C++'s inheritance not working in constructors, it's not going to work. */ //if (parent) { // parent_->addChild(this); |