mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 00:19:30 -05:00
fixed compilation, removing implicit cast from nullptr to uninitialized std::shared_ptr
This commit is contained in:
parent
e73e3232f6
commit
5d805e3798
@ -834,7 +834,7 @@ int RsGenExchange::createMessage(RsNxsMsg* msg)
|
||||
std::cerr << "RsGenExchange::createMessage() " << std::endl;
|
||||
#endif
|
||||
RsGxsGrpMetaTemporaryMap metaMap ;
|
||||
metaMap.insert(std::make_pair(id, (RsGxsGrpMetaData*)(NULL)));
|
||||
metaMap[id] = std::make_shared<RsGxsGrpMetaData>();
|
||||
mDataStore->retrieveGxsGrpMetaData(metaMap);
|
||||
|
||||
RsGxsMsgMetaData &meta = *(msg->metaData);
|
||||
@ -2231,7 +2231,7 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
|
||||
bool ok = false;
|
||||
|
||||
RsGxsGrpMetaTemporaryMap grpMetaMap;
|
||||
grpMetaMap.insert(std::make_pair(grpId, (RsGxsGrpMetaData*)(NULL)));
|
||||
grpMetaMap[grpId] = std::make_shared<RsGxsGrpMetaData>();
|
||||
|
||||
mDataStore->retrieveGxsGrpMetaData(grpMetaMap);
|
||||
auto mit = grpMetaMap.find(grpId);
|
||||
|
Loading…
Reference in New Issue
Block a user