summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-08-26 05:58:41 (GMT)
committerTobias Markmann <tm@ayena.de>2016-08-26 05:58:41 (GMT)
commit376ca804405347f8dfd242856fa5b0b352c69d90 (patch)
tree1a54c7db08b5679a1282aa6e6b656f24965039eb /Swift/QtUI/MUCSearch/MUCSearchRoomItem.h
parent5a4e7d9518e91cf39b96f14b3b310fe5b9a27594 (diff)
downloadswift-376ca804405347f8dfd242856fa5b0b352c69d90.zip
swift-376ca804405347f8dfd242856fa5b0b352c69d90.tar.bz2
Improve API clarity of MUCSearchItem::setParent
Change MUCSearchItem::setParent to take weak_ptr over shared_ptr and converting it to weak_ptr in the method. Test-Information: Builds on OS X 10.11.6. Tested that various MUC room searches still work. Change-Id: I26d62861c99957759127c18a629bdda3635012c7
Diffstat (limited to 'Swift/QtUI/MUCSearch/MUCSearchRoomItem.h')
-rw-r--r--Swift/QtUI/MUCSearch/MUCSearchRoomItem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/MUCSearch/MUCSearchRoomItem.h b/Swift/QtUI/MUCSearch/MUCSearchRoomItem.h
index 281b555..5ecb7d7 100644
--- a/Swift/QtUI/MUCSearch/MUCSearchRoomItem.h
+++ b/Swift/QtUI/MUCSearch/MUCSearchRoomItem.h
@@ -15,7 +15,7 @@ namespace Swift {
class MUCSearchRoomItem : public MUCSearchItem {
public:
MUCSearchRoomItem(const QString& node);
- void setParent(std::shared_ptr<MUCSearchServiceItem> parent);
+ void setParent(std::weak_ptr<MUCSearchServiceItem> parent);
std::shared_ptr<MUCSearchServiceItem> getParent();
QVariant data(int role);
QString getNode() const {return node_;}