diff options
author | Maxim Pimenov <m@maps.me> | 2018-11-28 13:04:56 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-11-30 16:01:49 +0300 |
commit | 5d5af46d48bf77f3632c9b039f7ce62e2a2904d5 (patch) | |
tree | 97acd4fbbacc61760489fe54bcf571b3835948e4 /platform | |
parent | 2da498b417b254a853543f68ecfc99a611cce1a0 (diff) |
[base] Renamed CHECK_SWITCH to UNREACHABLE.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/country_defines.cpp | 2 | ||||
-rw-r--r-- | platform/http_request.cpp | 2 | ||||
-rw-r--r-- | platform/local_country_file_utils.cpp | 2 | ||||
-rw-r--r-- | platform/measurement_utils.cpp | 6 | ||||
-rw-r--r-- | platform/measurement_utils.hpp | 2 | ||||
-rw-r--r-- | platform/mwm_traits.cpp | 4 | ||||
-rw-r--r-- | platform/platform.cpp | 4 | ||||
-rw-r--r-- | platform/settings.cpp | 4 |
8 files changed, 13 insertions, 13 deletions
diff --git a/platform/country_defines.cpp b/platform/country_defines.cpp index 1533887524..fa14841629 100644 --- a/platform/country_defines.cpp +++ b/platform/country_defines.cpp @@ -38,5 +38,5 @@ string DebugPrint(MapOptions options) case MapOptions::Diff: return "Diff"; } - CHECK_SWITCH(); + UNREACHABLE(); } diff --git a/platform/http_request.cpp b/platform/http_request.cpp index f1895c05f1..f2dece1621 100644 --- a/platform/http_request.cpp +++ b/platform/http_request.cpp @@ -417,6 +417,6 @@ string DebugPrint(HttpRequest::Status status) case HttpRequest::Status::FileNotFound: return "File not found"; } - CHECK_SWITCH(); + UNREACHABLE(); } } // namespace downloader diff --git a/platform/local_country_file_utils.cpp b/platform/local_country_file_utils.cpp index a7d11b8104..282c4c656e 100644 --- a/platform/local_country_file_utils.cpp +++ b/platform/local_country_file_utils.cpp @@ -467,6 +467,6 @@ string DebugPrint(CountryIndexes::Index index) case CountryIndexes::Index::Offsets: return "Offsets"; } - CHECK_SWITCH(); + UNREACHABLE(); } } // namespace platform diff --git a/platform/measurement_utils.cpp b/platform/measurement_utils.cpp index 60b0d7d8c4..04357c6731 100644 --- a/platform/measurement_utils.cpp +++ b/platform/measurement_utils.cpp @@ -59,7 +59,7 @@ double ToSpeedKmPH(double speed, measurement_utils::Units units) case Units::Imperial: return MphToKmph(speed); case Units::Metric: return speed; } - CHECK_SWITCH(); + UNREACHABLE(); } bool FormatDistance(double m, string & res) @@ -73,7 +73,7 @@ bool FormatDistance(double m, string & res) case Units::Imperial: return FormatDistanceImpl(m, res, " mi", " ft", 1609.344, 0.3048); case Units::Metric: return FormatDistanceImpl(m, res, " km", " m", 1000.0, 1.0); } - CHECK_SWITCH(); + UNREACHABLE(); } @@ -220,7 +220,7 @@ string FormatSpeedUnits(Units units) case Units::Imperial: return "mph"; case Units::Metric: return "km/h"; } - CHECK_SWITCH(); + UNREACHABLE(); } bool OSMDistanceToMeters(string const & osmRawValue, double & outMeters) diff --git a/platform/measurement_utils.hpp b/platform/measurement_utils.hpp index 96c2f50910..f085d7b650 100644 --- a/platform/measurement_utils.hpp +++ b/platform/measurement_utils.hpp @@ -21,7 +21,7 @@ inline std::string DebugPrint(Units units) case Units::Imperial: return "Units::Imperial"; case Units::Metric: return "Units::Metric"; } - CHECK_SWITCH(); + UNREACHABLE(); } inline double MetersToMiles(double m) { return m * 0.000621371192; } diff --git a/platform/mwm_traits.cpp b/platform/mwm_traits.cpp index 708664d419..9d982e30fb 100644 --- a/platform/mwm_traits.cpp +++ b/platform/mwm_traits.cpp @@ -46,7 +46,7 @@ string DebugPrint(MwmTraits::SearchIndexFormat format) case MwmTraits::SearchIndexFormat::CompressedBitVector: return "CompressedBitVector"; } - CHECK_SWITCH(); + UNREACHABLE(); } string DebugPrint(MwmTraits::HouseToStreetTableFormat format) @@ -58,6 +58,6 @@ string DebugPrint(MwmTraits::HouseToStreetTableFormat format) case MwmTraits::HouseToStreetTableFormat::Unknown: return "Unknown"; } - CHECK_SWITCH(); + UNREACHABLE(); } } // namespace version diff --git a/platform/platform.cpp b/platform/platform.cpp index e9123c4d19..d3b5a58fcb 100644 --- a/platform/platform.cpp +++ b/platform/platform.cpp @@ -335,7 +335,7 @@ string DebugPrint(Platform::EError err) case Platform::ERR_IO_ERROR: return "An I/O error occurred."; case Platform::ERR_UNKNOWN: return "Unknown"; } - CHECK_SWITCH(); + UNREACHABLE(); } string DebugPrint(Platform::ChargingStatus status) @@ -346,5 +346,5 @@ string DebugPrint(Platform::ChargingStatus status) case Platform::ChargingStatus::Plugged: return "Plugged"; case Platform::ChargingStatus::Unplugged: return "Unplugged"; } - CHECK_SWITCH(); + UNREACHABLE(); } diff --git a/platform/settings.cpp b/platform/settings.cpp index f26b39d2e4..d7ad3c95a5 100644 --- a/platform/settings.cpp +++ b/platform/settings.cpp @@ -280,7 +280,7 @@ string ToString<measurement_utils::Units>(measurement_utils::Units const & v) case measurement_utils::Units::Imperial: return "Foot"; case measurement_utils::Units::Metric: return "Metric"; } - CHECK_SWITCH(); + UNREACHABLE(); } template <> @@ -337,7 +337,7 @@ string ToString<Transliteration::Mode>(Transliteration::Mode const & mode) case Transliteration::Mode::Enabled: return "Enabled"; case Transliteration::Mode::Disabled: return "Disabled"; } - CHECK_SWITCH(); + UNREACHABLE(); } template <> |