mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix meta update in gen exchange (for meta service string updates)
- was assuming all meta changes were related to bit sets - was returning fail, when successful git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7397 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a68211e65c
commit
751930cd2d
@ -1604,7 +1604,7 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
|
||||
{
|
||||
if(grpMeta)
|
||||
delete grpMeta;
|
||||
return false;
|
||||
return !(grpCv.empty());
|
||||
}
|
||||
|
||||
ok &= grpCv.getAsInt32(key+GXS_MASK, mask);
|
||||
|
@ -294,6 +294,10 @@ void ContentValue::clear(){
|
||||
clearData();
|
||||
}
|
||||
|
||||
bool ContentValue::empty() const{
|
||||
return mKvSet.empty();
|
||||
}
|
||||
|
||||
void ContentValue::clearData(){
|
||||
|
||||
std::map<std::string, std::pair<uint32_t, char*> >::iterator
|
||||
|
@ -161,6 +161,11 @@ public:
|
||||
*/
|
||||
void clear();
|
||||
|
||||
/*!
|
||||
* checks if internal kv map is empty
|
||||
*/
|
||||
bool empty() const;
|
||||
|
||||
private:
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user