Remove incorrect usage of default in switch statements
Signed-off-by: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
This commit is contained in:
parent
a41dc0548d
commit
c0ffabeea7
4 changed files with 5 additions and 5 deletions
|
@ -108,9 +108,9 @@ osmoh::RuleState ModifierToRuleState(osmoh::RuleSequence::Modifier const modifie
|
|||
|
||||
case Modifier::Unknown:
|
||||
case Modifier::Comment:
|
||||
default:
|
||||
return osmoh::RuleState::Unknown;
|
||||
}
|
||||
return osmoh::RuleState::Unknown;
|
||||
}
|
||||
|
||||
// Transform timspan with extended end of the form of
|
||||
|
|
|
@ -206,8 +206,8 @@ vector<m2::SharedSpline> ClipSplineByRect(m2::RectD const & rect, m2::SharedSpli
|
|||
case RectCase::Inside: return {spline};
|
||||
case RectCase::Outside: return {};
|
||||
case RectCase::Intersect: return ClipPathByRectImpl(rect, spline->GetPath());
|
||||
default: return {};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<m2::SharedSpline> ClipPathByRect(m2::RectD const & rect,
|
||||
|
@ -218,8 +218,8 @@ std::vector<m2::SharedSpline> ClipPathByRect(m2::RectD const & rect,
|
|||
case RectCase::Inside: return {m2::SharedSpline(path)};
|
||||
case RectCase::Outside: return {};
|
||||
case RectCase::Intersect: return ClipPathByRectImpl(rect, path);
|
||||
default: return {};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
void ClipPathByRectBeforeSmooth(m2::RectD const & rect, std::vector<m2::PointD> const & path,
|
||||
|
|
|
@ -209,8 +209,8 @@ CrossMwmGraph::MwmStatus CrossMwmGraph::GetMwmStatus(NumMwmId numMwmId, string c
|
|||
case MwmDataSource::MwmNotLoaded: return MwmStatus::NotLoaded;
|
||||
case MwmDataSource::SectionExists: return MwmStatus::SectionExists;
|
||||
case MwmDataSource::NoSection: return MwmStatus::NoSection;
|
||||
default: return MwmStatus::NoSection;
|
||||
}
|
||||
return MwmStatus::NoSection;
|
||||
}
|
||||
|
||||
CrossMwmGraph::MwmStatus CrossMwmGraph::GetCrossMwmStatus(NumMwmId numMwmId) const
|
||||
|
|
|
@ -70,7 +70,7 @@ inline std::string DebugPrint(FakeVertex::Type type)
|
|||
{
|
||||
case FakeVertex::Type::PureFake: return "PureFake";
|
||||
case FakeVertex::Type::PartOfReal: return "PartOfReal";
|
||||
default: return "UnkonwFakeVertexType";
|
||||
}
|
||||
return "UnkonwFakeVertexType";
|
||||
}
|
||||
} // namespace routing
|
||||
|
|
Reference in a new issue