Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Address comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic committed Dec 22, 2020
1 parent 0392c75 commit 777807c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/common/datatypes/Path.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ struct Step {

std::string toString() const {
std::stringstream os;
os << "-" << "[" << (type > 0 ? "" : "-") << name << "]" << "->"
<< "(" << dst << ")"
<< "@" << ranking;
os << " ";
os << "-[" << name << "(" << type << ")]->"
<< "(" << dst << ")"
<< "@" << ranking << " ";
for (const auto& prop : props) {
os << prop.first << ":" << prop.second << ",";
}
Expand Down Expand Up @@ -86,7 +85,7 @@ struct Step {
bool operator==(const Step& rhs) const {
return dst == rhs.dst &&
type == rhs.type &&
name == rhs.name &&
name == rhs.name &&
ranking == rhs.ranking &&
props == rhs.props;
}
Expand Down

0 comments on commit 777807c

Please sign in to comment.