Merge pull request #1654 from PhenomRetroShare/Fix_Assignment_Operator_Warning

Fix implicitly-declared operator= warnings
This commit is contained in:
G10h4ck 2019-10-04 17:45:52 +02:00 committed by GitHub
commit 529dc2aa00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,13 +48,12 @@ public:
* 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;
@ -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;
};
/*!