Commit 89e55463 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[master] Use temporary variables in Name::compare()

parent 03f0b4d0
......@@ -435,8 +435,9 @@ Name::toText(bool omit_final_dot) const {
NameComparisonResult
Name::compare(const Name& other) const {
LabelSequence ls(*this);
return (ls.compare(LabelSequence(other)));
const LabelSequence ls1(*this);
const LabelSequence ls2(other);
return (ls1.compare(ls2));
}
bool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment