Commit 88ac3652 authored by Sanjiban Bairagya's avatar Sanjiban Bairagya Committed by Sanjiban Bairagya

No need to declare extra variable when it is used only once

parent 9e0ebe51
......@@ -150,9 +150,8 @@ QString VoiceNavigationModelPrivate::turnTypeAudioFile( Maneuver::Direction turn
QString VoiceNavigationModelPrivate::announcementText( Maneuver::Direction turnType, qreal distance )
{
bool const announce = distance >= 75;
QString announcementText = QString("");
if (announce) {
if (distance >= 75) {
announcementText = QString("In "+distanceAudioFile(distance)+" meters, ");
}
switch (turnType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment