Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Melnichek <melnichek@gmail.com>2011-04-25 06:03:02 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:16:22 +0300
commit1196862b8508e047a323c25613f383bf497f65fc (patch)
tree93025261ab1017e3ee3b20f6535cc44ff5f96cf0 /geometry
parent81e732a71d79d31cd41b0c54020ae23b8f2961ea (diff)
Add default constructor to CellId.
Diffstat (limited to 'geometry')
-rw-r--r--geometry/cellid.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/geometry/cellid.hpp b/geometry/cellid.hpp
index 7d4fb0f736..c694549eed 100644
--- a/geometry/cellid.hpp
+++ b/geometry/cellid.hpp
@@ -15,6 +15,11 @@ public:
enum { DEPTH_LEVELS = kDepthLevels };
enum { MAX_COORD = 1 << DEPTH_LEVELS };
+ CellId() : m_Bits(0), m_Level(0)
+ {
+ ASSERT(IsValid(), ());
+ }
+
explicit CellId(string const & s)
{
*this = FromString(s);