diff --git a/drape_frontend/read_mwm_task.cpp b/drape_frontend/read_mwm_task.cpp index 88bfb1f66b..ba03e71b0a 100644 --- a/drape_frontend/read_mwm_task.cpp +++ b/drape_frontend/read_mwm_task.cpp @@ -4,37 +4,37 @@ namespace df { - -ReadMWMTask::ReadMWMTask(weak_ptr const & tileInfo, - MemoryFeatureIndex & memIndex, - model::FeaturesFetcher & model, - EngineContext & context) - : m_tileInfo(tileInfo) - , m_memIndex(memIndex) - , m_model(model) - , m_context(context) -{ -} - ReadMWMTask::ReadMWMTask(MemoryFeatureIndex & memIndex, model::FeaturesFetcher & model, EngineContext & context) : m_memIndex(memIndex) , m_model(model) , m_context(context) { +#ifdef DEBUG + m_checker = false; +#endif } -void ReadMWMTask::init(weak_ptr const & tileInfo) +void ReadMWMTask::Init(weak_ptr const & tileInfo) { m_tileInfo = tileInfo; +#ifdef DEBUG + m_checker = true; +#endif } void ReadMWMTask::Reset() { +#ifdef DEBUG + m_checker = false; +#endif } void ReadMWMTask::Do() { +#ifdef DEBUG + ASSERT(m_checker, ()); +#endif shared_ptr tileInfo = m_tileInfo.lock(); if (tileInfo == NULL) return; diff --git a/drape_frontend/read_mwm_task.hpp b/drape_frontend/read_mwm_task.hpp index f80e258d5a..c1a0d02188 100644 --- a/drape_frontend/read_mwm_task.hpp +++ b/drape_frontend/read_mwm_task.hpp @@ -18,11 +18,6 @@ class EngineContext; class ReadMWMTask : public threads::IRoutine { public: - ReadMWMTask(weak_ptr const & tileInfo, - MemoryFeatureIndex & memIndex, - model::FeaturesFetcher & model, - EngineContext & context); - ReadMWMTask(MemoryFeatureIndex & memIndex, model::FeaturesFetcher & model, EngineContext & context);