diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-06-18 21:17:26 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-06-18 21:27:59 (GMT) |
commit | 154bf14ac15fc7bff918c20814b29b5cc3bc5ba4 (patch) | |
tree | 28f18493bb6bc1cbf85b90f391daa6c4e1ecb3aa /Swiften/Network/TimerFactory.h | |
parent | b763087e13f25e08aa51a6568b03727f136de34e (diff) | |
download | swift-contrib-154bf14ac15fc7bff918c20814b29b5cc3bc5ba4.zip swift-contrib-154bf14ac15fc7bff918c20814b29b5cc3bc5ba4.tar.bz2 |
Fix crash on reconnect.
BoostTimer isn't supposed to be constructed as a non-shared-ptr. Making
constructor private to avoid this error in the future.
Diffstat (limited to 'Swiften/Network/TimerFactory.h')
-rw-r--r-- | Swiften/Network/TimerFactory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Network/TimerFactory.h b/Swiften/Network/TimerFactory.h index 558426c..44c87b6 100644 --- a/Swiften/Network/TimerFactory.h +++ b/Swiften/Network/TimerFactory.h @@ -8,13 +8,13 @@ #include <boost/shared_ptr.hpp> -namespace Swift { - class Timer; +#include "Swiften/Network/Timer.h" +namespace Swift { class TimerFactory { public: virtual ~TimerFactory(); - virtual boost::shared_ptr<Timer> createTimer(int milliseconds) = 0; + virtual Timer::ref createTimer(int milliseconds) = 0; }; } |