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
path: root/base
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-07-05 21:28:06 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:58:13 +0300
commitd86c0a6b28d1c54db01c4ce0c1a5e2696db50636 (patch)
tree9c39b61f7c49c5ecaf936247467711e4f1fe53af /base
parentd39d7542f3a45ada3907506a6880053634e35274 (diff)
Fix according to code review.
Diffstat (limited to 'base')
-rw-r--r--base/scheduled_task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/scheduled_task.cpp b/base/scheduled_task.cpp
index e96f9ad01e..56643778b1 100644
--- a/base/scheduled_task.cpp
+++ b/base/scheduled_task.cpp
@@ -32,8 +32,8 @@ void ScheduledTask::Routine::Do()
}
ScheduledTask::ScheduledTask(fn_t const & fn, unsigned ms)
+ : m_routine(new Routine(fn, ms, &m_cond))
{
- m_routine.reset(new Routine(fn, ms, &m_cond));
m_thread.Create(m_routine.get());
}