From ab349a8157711c61ad4030c4f1557e6af37fef52 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Fri, 15 Jan 2021 16:42:29 +0100 Subject: [PATCH] Use unannotated pointer as per Cyril taste --- libretroshare/src/services/p3gxsforums.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libretroshare/src/services/p3gxsforums.cc b/libretroshare/src/services/p3gxsforums.cc index a57d4e68f..cd7cbb5fe 100644 --- a/libretroshare/src/services/p3gxsforums.cc +++ b/libretroshare/src/services/p3gxsforums.cc @@ -197,16 +197,14 @@ void p3GxsForums::notifyChanges(std::vector &changes) std::vector::iterator it; for(it = changes.begin(); it != changes.end(); ++it) { - rs_view_ptr gxsChange = *it; + RsGxsNotify* gxsChange = *it; switch(gxsChange->getType()) { case RsGxsNotify::TYPE_RECEIVED_NEW: // [[fallthrough]] case RsGxsNotify::TYPE_PUBLISHED: { - rs_view_ptr msgChange = - dynamic_cast(*it); - rs_view_ptr groupChange = - dynamic_cast(*it); + RsGxsMsgChange* msgChange = dynamic_cast(*it); + RsGxsGroupChange* groupChange = dynamic_cast(*it); if(msgChange) /* Message received*/ { @@ -258,7 +256,7 @@ void p3GxsForums::notifyChanges(std::vector &changes) } case RsGxsNotify::TYPE_MESSAGE_DELETED: { - rs_view_ptr delChange = + RsGxsMsgDeletedChange* delChange = dynamic_cast(gxsChange); if(!delChange) @@ -301,8 +299,7 @@ void p3GxsForums::notifyChanges(std::vector &changes) * analyse the old and new group in order to detect possible * notifications for clients */ - rs_view_ptr grpChange = - dynamic_cast(*it); + RsGxsGroupChange* grpChange = dynamic_cast(*it); RsGxsForumGroupItem* old_forum_grp_item = dynamic_cast(grpChange->mOldGroupItem);