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 { ...@@ -435,8 +435,9 @@ Name::toText(bool omit_final_dot) const {
NameComparisonResult NameComparisonResult
Name::compare(const Name& other) const { Name::compare(const Name& other) const {
LabelSequence ls(*this); const LabelSequence ls1(*this);
return (ls.compare(LabelSequence(other))); const LabelSequence ls2(other);
return (ls1.compare(ls2));
} }
bool 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