diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-04-23 16:59:17 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-04-23 16:59:17 (GMT) |
commit | e3041b220e4846fb2f0273c720d8bcbd78cafaaf (patch) | |
tree | c6cfbd8d61417143689f7999d69e189026f3ab54 /Swift/Controllers/Roster/RosterItem.cpp | |
parent | b6246efcf15f03bb5b44bc79190bc9f4c7be9506 (diff) | |
download | swift-contrib-e3041b220e4846fb2f0273c720d8bcbd78cafaaf.zip swift-contrib-e3041b220e4846fb2f0273c720d8bcbd78cafaaf.tar.bz2 |
Sort MUC roles by role, rather than by name.
Resolves: #794
Release-Notes: Non-English translations will no longer have MUC role groups in the incorrect order.
Diffstat (limited to 'Swift/Controllers/Roster/RosterItem.cpp')
-rw-r--r-- | Swift/Controllers/Roster/RosterItem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Roster/RosterItem.cpp b/Swift/Controllers/Roster/RosterItem.cpp index 3f130bb..77db8a3 100644 --- a/Swift/Controllers/Roster/RosterItem.cpp +++ b/Swift/Controllers/Roster/RosterItem.cpp @@ -33,11 +33,11 @@ void RosterItem::setDisplayName(const std::string& name) { onDataChanged(); } -std::string RosterItem::getDisplayName() const { +const std::string& RosterItem::getDisplayName() const { return name_; } -std::string RosterItem::getSortableDisplayName() const { +const std::string& RosterItem::getSortableDisplayName() const { return sortableDisplayName_; } |