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

Commit

Permalink
Fix compilation errors in some 3rd-party versions (#1219)
Browse files Browse the repository at this point in the history
Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 13, 2021
1 parent c3f78f9 commit 2567f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/planner/ngql/GoPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void GoPlanner::doBuildEdgeProps(std::unique_ptr<EdgeProps>& eProps, bool onlyDs
if (found == exprProps.edgeProps().end()) {
ep.set_props({kDst});
} else {
std::set<std::string> props(found->second.begin(), found->second.end());
std::set<folly::StringPiece> props(found->second.begin(), found->second.end());
props.emplace(kDst);
ep.set_props(std::vector<std::string>(props.begin(), props.end()));
}
Expand Down
2 changes: 1 addition & 1 deletion src/planner/ngql/PathPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void PathPlanner::doBuildEdgeProps(std::unique_ptr<std::vector<EdgeProp>>& edgeP
if (found == exprProps.edgeProps().end()) {
ep.set_props({kDst, kType, kRank});
} else {
std::set<std::string> props(found->second.begin(), found->second.end());
std::set<folly::StringPiece> props(found->second.begin(), found->second.end());
props.emplace(kDst);
props.emplace(kType);
props.emplace(kRank);
Expand Down

0 comments on commit 2567f7b

Please sign in to comment.