Encapsulate an OSDMap in DAMap (was DynAttrsOSDMap) rather than inheriting from it

This is the easier way to give us control over locking, rather than asking that OSDMap IDictionary methods be virtual
This commit is contained in:
Justin Clark-Casey (justincc)
2010-08-16 22:21:46 +01:00
parent a3e1e6dd61
commit a6d9c26365
8 changed files with 191 additions and 97 deletions

View File

@@ -1693,9 +1693,9 @@ VALUES
prim.MediaUrl = (string)primRow["MediaURL"];
if (!(primRow["DynAttrs"] is System.DBNull))
prim.DynAttrs = DynAttrsOSDMap.FromXml((string)primRow["DynAttrs"]);
prim.DynAttrs = DAMap.FromXml((string)primRow["DynAttrs"]);
else
prim.DynAttrs = new DynAttrsOSDMap();
prim.DynAttrs = new DAMap();
return prim;
}
@@ -1755,9 +1755,9 @@ VALUES
}
if (!(shapeRow["DynAttrs"] is System.DBNull))
baseShape.DynAttrs = DynAttrsOSDMap.FromXml((string)shapeRow["DynAttrs"]);
baseShape.DynAttrs = DAMap.FromXml((string)shapeRow["DynAttrs"]);
else
baseShape.DynAttrs = new DynAttrsOSDMap();
baseShape.DynAttrs = new DAMap();
return baseShape;
}