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:
chrisparker126 2014-06-03 21:49:41 +00:00
parent a68211e65c
commit 751930cd2d
3 changed files with 10 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
{ {
if(grpMeta) if(grpMeta)
delete grpMeta; delete grpMeta;
return false; return !(grpCv.empty());
} }
ok &= grpCv.getAsInt32(key+GXS_MASK, mask); ok &= grpCv.getAsInt32(key+GXS_MASK, mask);

View File

@ -294,6 +294,10 @@ void ContentValue::clear(){
clearData(); clearData();
} }
bool ContentValue::empty() const{
return mKvSet.empty();
}
void ContentValue::clearData(){ void ContentValue::clearData(){
std::map<std::string, std::pair<uint32_t, char*> >::iterator std::map<std::string, std::pair<uint32_t, char*> >::iterator

View File

@ -161,6 +161,11 @@ public:
*/ */
void clear(); void clear();
/*!
* checks if internal kv map is empty
*/
bool empty() const;
private: private:
/*! /*!