Skip to content

Commit

Permalink
Merge pull request RetroShare#1654 from PhenomRetroShare/Fix_Assignme…
Browse files Browse the repository at this point in the history
…nt_Operator_Warning

Fix implicitly-declared operator= warnings
  • Loading branch information
G10h4ck authored Oct 4, 2019
2 parents b539ebe + 5c46a8f commit 529dc2a
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions libretroshare/src/gxs/rsgds.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ class RsGxsSearchModule {
* This allows modification of local
* meta data items of a message
*/
class MsgLocMetaData {
struct MsgLocMetaData {
MsgLocMetaData() = default;
MsgLocMetaData(const MsgLocMetaData& meta): msgId(meta.msgId), val(meta.val) {}

public:
MsgLocMetaData(const MsgLocMetaData& meta){ msgId = meta.msgId; val = meta.val;}
MsgLocMetaData() {}
RsGxsGrpMsgIdPair msgId;
ContentValue val;
RsGxsGrpMsgIdPair msgId;
ContentValue val;
};

typedef std::map<RsGxsGroupId,RsGxsGrpMetaData*> RsGxsGrpMetaTemporaryMap;
Expand All @@ -63,14 +62,12 @@ typedef std::map<RsGxsGroupId,RsGxsGrpMetaData*> RsGxsGrpMetaTemporaryMap;
* This allows modification of local
* meta data items of a group
*/
class GrpLocMetaData {

public:
GrpLocMetaData(const GrpLocMetaData& meta){ grpId = meta.grpId; val = meta.val;}
GrpLocMetaData(){}
RsGxsGroupId grpId;
ContentValue val;
struct GrpLocMetaData {
GrpLocMetaData() = default;
GrpLocMetaData(const GrpLocMetaData& meta): grpId(meta.grpId), val(meta.val) {}

RsGxsGroupId grpId;
ContentValue val;
};

/*!
Expand Down

0 comments on commit 529dc2a

Please sign in to comment.