mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Use unannotated pointer as per Cyril taste
This commit is contained in:
parent
cef43fe048
commit
ab349a8157
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user