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

old-commit-hash: 69e9b285b3e125e319aedc9b587e4da44adb9913
This commit is contained in:
Dean Lee
2022-09-09 06:53:23 +08:00
committed by GitHub
parent 9d640eecd0
commit f2035fe63c

View File

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