UI/map: remove redundant QString ctor (#25704)

old-commit-hash: 69e9b285b3
taco
Dean Lee 3 years ago committed by GitHub
parent 9d640eecd0
commit f2035fe63c
  1. 4
      selfdrive/ui/qt/maps/map.cc

@ -486,9 +486,9 @@ void MapInstructions::updateInstructions(cereal::NavInstruction::Reader instruct
// for rhd, reflect direction and then flip // for rhd, reflect direction and then flip
if (is_rhd) { if (is_rhd) {
if (fn.contains("left")) { if (fn.contains("left")) {
fn.replace(QString("left"), QString("right")); fn.replace("left", "right");
} else if (fn.contains("right")) { } else if (fn.contains("right")) {
fn.replace(QString("right"), QString("left")); fn.replace("right", "left");
} }
} }

Loading…
Cancel
Save