mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 01:17:16 -05:00
Fix implicitly-declared operator= warnings
/libretroshare/src/gxs/rsgds.h:54: warning: implicitly-declared 'ContentValue& ContentValue::operator=(const ContentValue&)' is deprecated [-Wdeprecated-copy] 54 | MsgLocMetaData(const MsgLocMetaData& meta){ msgId = meta.msgId; val = meta.val;} /libretroshare/src/gxs/rsgds.h:69: warning: implicitly-declared 'ContentValue& ContentValue::operator=(const ContentValue&)' is deprecated [-Wdeprecated-copy] 69 | GrpLocMetaData(const GrpLocMetaData& meta){ grpId = meta.grpId; val = meta.val;} From 248 to 146 warnings.
This commit is contained in:
parent
b539ebe826
commit
5c46a8fd4d
@ -48,13 +48,12 @@ public:
|
|||||||
* This allows modification of local
|
* This allows modification of local
|
||||||
* meta data items of a message
|
* meta data items of a message
|
||||||
*/
|
*/
|
||||||
class MsgLocMetaData {
|
struct MsgLocMetaData {
|
||||||
|
MsgLocMetaData() = default;
|
||||||
|
MsgLocMetaData(const MsgLocMetaData& meta): msgId(meta.msgId), val(meta.val) {}
|
||||||
|
|
||||||
public:
|
RsGxsGrpMsgIdPair msgId;
|
||||||
MsgLocMetaData(const MsgLocMetaData& meta){ msgId = meta.msgId; val = meta.val;}
|
ContentValue val;
|
||||||
MsgLocMetaData() {}
|
|
||||||
RsGxsGrpMsgIdPair msgId;
|
|
||||||
ContentValue val;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<RsGxsGroupId,RsGxsGrpMetaData*> RsGxsGrpMetaTemporaryMap;
|
typedef std::map<RsGxsGroupId,RsGxsGrpMetaData*> RsGxsGrpMetaTemporaryMap;
|
||||||
@ -63,14 +62,12 @@ typedef std::map<RsGxsGroupId,RsGxsGrpMetaData*> RsGxsGrpMetaTemporaryMap;
|
|||||||
* This allows modification of local
|
* This allows modification of local
|
||||||
* meta data items of a group
|
* meta data items of a group
|
||||||
*/
|
*/
|
||||||
class GrpLocMetaData {
|
struct GrpLocMetaData {
|
||||||
|
GrpLocMetaData() = default;
|
||||||
public:
|
GrpLocMetaData(const GrpLocMetaData& meta): grpId(meta.grpId), val(meta.val) {}
|
||||||
GrpLocMetaData(const GrpLocMetaData& meta){ grpId = meta.grpId; val = meta.val;}
|
|
||||||
GrpLocMetaData(){}
|
|
||||||
RsGxsGroupId grpId;
|
|
||||||
ContentValue val;
|
|
||||||
|
|
||||||
|
RsGxsGroupId grpId;
|
||||||
|
ContentValue val;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user