changed to const reference in DiffList::mergeOnto