Commit 0969103b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[master] Use a temporary variable in Name::compare()

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