Fix Warnings for 'p3PhotoService::msgsChanged' hides overloaded virtual

function

In file included from ../../../trunk/libretroshare/src/rsserver/
rsinit.cc:769:
../../../trunk/libretroshare/src/services/p3photoservice.h:59:10:
warning: 'p3PhotoService::msgsChanged' hides overloaded virtual function
[-Woverloaded-virtual]
    void msgsChanged(std::map<RsGxsGroupId,
         ^
../../../trunk/libretroshare/src/retroshare/rsphoto.h:206:18: note:
hidden overloaded virtual function 'RsPhoto::msgsChanged' declared here:
type mismatch at 1st parameter ('GxsMsgIdResult &' (aka
'map<t_RsGenericIdType<CERT_SIGN_LEN, false,
RS_GENERIC_ID_GXS_GROUP_ID_TYPE>, set<t_RsGenericIdType<SHA1_SIZE,
false, RS_GENERIC_ID_SHA1_ID_TYPE> > > &') vs 'std::map<RsGxsGroupId,
std::vector<RsGxsMessageId> > &' (aka
'map<t_RsGenericIdType<CERT_SIGN_LEN, false,
RS_GENERIC_ID_GXS_GROUP_ID_TYPE>, vector<t_RsGenericIdType<SHA1_SIZE,
false, RS_GENERIC_ID_SHA1_ID_TYPE> > > &'))
    virtual void msgsChanged(GxsMsgIdResult& msgs) = 0;
                 ^
This commit is contained in:
Phenom 2019-02-14 22:15:53 +01:00
parent 8806840989
commit 78e8758b9e
2 changed files with 2 additions and 4 deletions

View File

@ -187,8 +187,7 @@ void p3PhotoService::groupsChanged(std::list<RsGxsGroupId>& grpIds)
}
void p3PhotoService::msgsChanged(
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >& msgs)
void p3PhotoService::msgsChanged(GxsMsgIdResult& msgs)
{
RsStackMutex stack(mPhotoMutex);

View File

@ -56,8 +56,7 @@ public:
void groupsChanged(std::list<RsGxsGroupId>& grpIds);
void msgsChanged(std::map<RsGxsGroupId,
std::vector<RsGxsMessageId> >& msgs);
void msgsChanged(GxsMsgIdResult& msgs);
RsTokenService* getTokenService();