C++11 fixes.

This commit is contained in:
Jari Sundell
2011-12-27 16:45:19 +09:00
parent f51b280cbf
commit 0626dcf783
14 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ CommandScheduler::insert(const std::string& key) {
delete *itr;
*itr = new CommandSchedulerItem(key);
(*itr)->set_slot(std::tr1::bind(&CommandScheduler::call_item, this, *itr));
(*itr)->slot() = std::tr1::bind(&CommandScheduler::call_item, this, *itr);
return itr;
}
+7 -7
View File
@@ -51,22 +51,22 @@ public:
CommandSchedulerItem(const std::string& key) : m_key(key), m_interval(0) {}
~CommandSchedulerItem();
bool is_queued() const { return m_task.is_queued(); }
bool is_queued() const { return m_task.is_queued(); }
void enable(rak::timer t);
void disable();
const std::string& key() const { return m_key; }
torrent::Object& command() { return m_command; }
const std::string& key() const { return m_key; }
torrent::Object& command() { return m_command; }
// 'interval()' should in the future return some more dynamic values.
uint32_t interval() const { return m_interval; }
void set_interval(uint32_t v) { m_interval = v; }
uint32_t interval() const { return m_interval; }
void set_interval(uint32_t v) { m_interval = v; }
rak::timer time_scheduled() const { return m_timeScheduled; }
rak::timer time_scheduled() const { return m_timeScheduled; }
rak::timer next_time_scheduled() const;
void set_slot(const slot_void& s) { m_task.set_slot(s); }
slot_void& slot() { return m_task.slot(); }
private:
CommandSchedulerItem(const CommandSchedulerItem&);