diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-20 20:36:28 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-20 20:37:09 (GMT) |
commit | 1fe811468562aaf9cf1583997fb0894c0f56da15 (patch) | |
tree | 81655ef4c6e2c10c21be20cba8f0aea80d82d8ba /Swift/Controllers/Roster/ContactRosterItem.cpp | |
parent | 897727deb2cfa3800621117c1de15e18cfd1400c (diff) | |
download | swift-1fe811468562aaf9cf1583997fb0894c0f56da15.zip swift-1fe811468562aaf9cf1583997fb0894c0f56da15.tar.bz2 |
Return groups vector by reference.
This avoids a potential crash.
Resolves: #842
Release-Notes: Fixed a crash in roster handling
Diffstat (limited to 'Swift/Controllers/Roster/ContactRosterItem.cpp')
-rw-r--r-- | Swift/Controllers/Roster/ContactRosterItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Roster/ContactRosterItem.cpp b/Swift/Controllers/Roster/ContactRosterItem.cpp index c6064d6..0fe88aa 100644 --- a/Swift/Controllers/Roster/ContactRosterItem.cpp +++ b/Swift/Controllers/Roster/ContactRosterItem.cpp @@ -99,7 +99,7 @@ void ContactRosterItem::applyPresence(const std::string& resource, boost::shared onDataChanged(); } -const std::vector<std::string> ContactRosterItem::getGroups() const { +const std::vector<std::string>& ContactRosterItem::getGroups() const { return groups_; } |