Use unannotated pointer as per Cyril taste

This commit is contained in:
Gioacchino Mazzurco 2021-01-15 16:42:29 +01:00
parent cef43fe048
commit ab349a8157
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -197,16 +197,14 @@ void p3GxsForums::notifyChanges(std::vector<RsGxsNotify *> &changes)
std::vector<RsGxsNotify *>::iterator it; std::vector<RsGxsNotify *>::iterator it;
for(it = changes.begin(); it != changes.end(); ++it) for(it = changes.begin(); it != changes.end(); ++it)
{ {
rs_view_ptr<RsGxsNotify> gxsChange = *it; RsGxsNotify* gxsChange = *it;
switch(gxsChange->getType()) switch(gxsChange->getType())
{ {
case RsGxsNotify::TYPE_RECEIVED_NEW: // [[fallthrough]] case RsGxsNotify::TYPE_RECEIVED_NEW: // [[fallthrough]]
case RsGxsNotify::TYPE_PUBLISHED: case RsGxsNotify::TYPE_PUBLISHED:
{ {
rs_view_ptr<RsGxsMsgChange> msgChange = RsGxsMsgChange* msgChange = dynamic_cast<RsGxsMsgChange*>(*it);
dynamic_cast<RsGxsMsgChange*>(*it); RsGxsGroupChange* groupChange = dynamic_cast<RsGxsGroupChange*>(*it);
rs_view_ptr<RsGxsGroupChange> groupChange =
dynamic_cast<RsGxsGroupChange*>(*it);
if(msgChange) /* Message received*/ if(msgChange) /* Message received*/
{ {
@ -258,7 +256,7 @@ void p3GxsForums::notifyChanges(std::vector<RsGxsNotify *> &changes)
} }
case RsGxsNotify::TYPE_MESSAGE_DELETED: case RsGxsNotify::TYPE_MESSAGE_DELETED:
{ {
rs_view_ptr<RsGxsMsgDeletedChange> delChange = RsGxsMsgDeletedChange* delChange =
dynamic_cast<RsGxsMsgDeletedChange*>(gxsChange); dynamic_cast<RsGxsMsgDeletedChange*>(gxsChange);
if(!delChange) if(!delChange)
@ -301,8 +299,7 @@ void p3GxsForums::notifyChanges(std::vector<RsGxsNotify *> &changes)
* analyse the old and new group in order to detect possible * analyse the old and new group in order to detect possible
* notifications for clients */ * notifications for clients */
rs_view_ptr<RsGxsGroupChange> grpChange = RsGxsGroupChange* grpChange = dynamic_cast<RsGxsGroupChange*>(*it);
dynamic_cast<RsGxsGroupChange*>(*it);
RsGxsForumGroupItem* old_forum_grp_item = RsGxsForumGroupItem* old_forum_grp_item =
dynamic_cast<RsGxsForumGroupItem*>(grpChange->mOldGroupItem); dynamic_cast<RsGxsForumGroupItem*>(grpChange->mOldGroupItem);