Get rid of all "const SHAMap::pointer&" -> SHAMap::ref

This commit is contained in:
JoelKatz
2012-09-13 15:36:56 -07:00
parent 7c7a4bd3e0
commit 6c016039c2
6 changed files with 17 additions and 15 deletions

View File

@@ -91,7 +91,7 @@ bool SHAMap::walkBranch(SHAMapTreeNode* node, SHAMapItem::pointer otherMapItem,
return true;
}
bool SHAMap::compare(const SHAMap::pointer& otherMap, SHAMapDiff& differences, int maxCount)
bool SHAMap::compare(SHAMap::ref otherMap, SHAMapDiff& differences, int maxCount)
{ // compare two hash trees, add up to maxCount differences to the difference table
// return value: true=complete table of differences given, false=too many differences
// throws on corrupt tables or missing nodes