From 6afccd14ac29c038bd2261168d0e66c91ff79e1f Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 16 Jun 2015 13:24:50 +0300 Subject: Review fixes. --- platform/country_defines.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'platform/country_defines.cpp') diff --git a/platform/country_defines.cpp b/platform/country_defines.cpp index fa5a5ec31f..5a3ab9e8f5 100644 --- a/platform/country_defines.cpp +++ b/platform/country_defines.cpp @@ -2,13 +2,23 @@ #include "base/assert.hpp" +bool HasOptions(TMapOptions options, TMapOptions bits) +{ + return (static_cast(options) & static_cast(bits)) == static_cast(bits); +} + +TMapOptions SetOptions(TMapOptions options, TMapOptions bits) +{ + return static_cast(static_cast(options) | static_cast(bits)); +} + string DebugPrint(TMapOptions options) { switch (options) { case TMapOptions::ENothing: return "Nothing"; - case TMapOptions::EMapOnly: + case TMapOptions::EMap: return "MapOnly"; case TMapOptions::ECarRouting: return "CarRouting"; -- cgit v1.2.3