fixed compilation, removing implicit cast from nullptr to uninitialized std::shared_ptr

This commit is contained in:
csoler 2021-01-18 13:23:43 +01:00
parent e73e3232f6
commit 5d805e3798

View File

@ -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);