summaryrefslogtreecommitdiff
path: root/indra/llinventory/lluserrelations.cpp
diff options
context:
space:
mode:
authorJon Wolk <jwolk@lindenlab.com>2007-12-19 00:56:59 +0000
committerJon Wolk <jwolk@lindenlab.com>2007-12-19 00:56:59 +0000
commit7dd08303a3ebf9718c2c60a4d94b81d5d7845f8c (patch)
tree6195a8585cc7998647afcaec2167e728e4abd3c1 /indra/llinventory/lluserrelations.cpp
parent4d87303e78c1accde85b217b325e0c08930b0c4c (diff)
svn merge -r 75354:76103 svn+ssh://svn.lindenlab.com/svn/linden/branches/voice-group-moderation-3 -> release. Finished product of QAR-134
Diffstat (limited to 'indra/llinventory/lluserrelations.cpp')
-rw-r--r--indra/llinventory/lluserrelations.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llinventory/lluserrelations.cpp b/indra/llinventory/lluserrelations.cpp
index 0f1b48ecd1..e96cb1e1c1 100644
--- a/indra/llinventory/lluserrelations.cpp
+++ b/indra/llinventory/lluserrelations.cpp
@@ -41,6 +41,7 @@ const LLRelationship LLRelationship::DEFAULT_RELATIONSHIP = LLRelationship(GRANT
LLRelationship::LLRelationship() :
mGrantToAgent(0),
mGrantFromAgent(0),
+ mChangeSerialNum(0),
mIsOnline(false)
{
}
@@ -48,6 +49,7 @@ LLRelationship::LLRelationship() :
LLRelationship::LLRelationship(S32 grant_to, S32 grant_from, bool is_online) :
mGrantToAgent(grant_to),
mGrantFromAgent(grant_from),
+ mChangeSerialNum(0),
mIsOnline(is_online)
{
}
@@ -60,6 +62,7 @@ bool LLRelationship::isOnline() const
void LLRelationship::online(bool is_online)
{
mIsOnline = is_online;
+ mChangeSerialNum++;
}
bool LLRelationship::isRightGrantedTo(S32 rights) const
@@ -86,12 +89,14 @@ void LLRelationship::grantRights(S32 to_agent, S32 from_agent)
{
mGrantToAgent |= to_agent;
mGrantFromAgent |= from_agent;
+ mChangeSerialNum++;
}
void LLRelationship::revokeRights(S32 to_agent, S32 from_agent)
{
mGrantToAgent &= ~to_agent;
mGrantFromAgent &= ~from_agent;
+ mChangeSerialNum++;
}