check for empty on string_ref, rather than string itself

This commit is contained in:
karenzshea
2017-12-01 11:36:03 +01:00
committed by Patrick Niklaus
parent 89080fb2b0
commit 4166b1ebbf
6 changed files with 26 additions and 29 deletions
@@ -77,8 +77,8 @@ TurnType::Enum IntersectionHandler::findBasicTurnType(const EdgeID via_edge,
const auto &out_name_id =
node_data_container.GetAnnotation(node_based_graph.GetEdgeData(road.eid).annotation_data)
.name_id;
const auto &in_name_empty = name_table.GetNameForID(in_name_id).to_string().empty();
const auto &out_name_empty = name_table.GetNameForID(out_name_id).to_string().empty();
const auto &in_name_empty = name_table.GetNameForID(in_name_id).empty();
const auto &out_name_empty = name_table.GetNameForID(out_name_id).empty();
const auto same_name = !util::guidance::requiresNameAnnounced(
in_name_id, out_name_id, name_table, street_name_suffix_table);