diff options
-rw-r--r-- | Swiften/Base/BoostRandomGenerator.h | 4 | ||||
-rw-r--r-- | Swiften/EventLoop/DummyEventLoop.h | 4 | ||||
-rw-r--r-- | Swiften/EventLoop/Qt/QtEventLoop.h | 4 | ||||
-rw-r--r-- | Swiften/EventLoop/SimpleEventLoop.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/Swiften/Base/BoostRandomGenerator.h b/Swiften/Base/BoostRandomGenerator.h index cf6dd06..60d56af 100644 --- a/Swiften/Base/BoostRandomGenerator.h +++ b/Swiften/Base/BoostRandomGenerator.h @@ -1,21 +1,21 @@ /* - * Copyright (c) 2012 Isode Limited. + * Copyright (c) 2012-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <Swiften/Base/RandomGenerator.h> #include <Swiften/Base/Override.h> #include <boost/random/mersenne_twister.hpp> namespace Swift { - class BoostRandomGenerator : public RandomGenerator{ + class BoostRandomGenerator : public RandomGenerator { public: BoostRandomGenerator(); int generateRandomInteger(int max) SWIFTEN_OVERRIDE; private: diff --git a/Swiften/EventLoop/DummyEventLoop.h b/Swiften/EventLoop/DummyEventLoop.h index 088dac8..6ee1b77 100644 --- a/Swiften/EventLoop/DummyEventLoop.h +++ b/Swiften/EventLoop/DummyEventLoop.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -12,13 +12,13 @@ #include <Swiften/EventLoop/EventLoop.h> namespace Swift { class SWIFTEN_API DummyEventLoop : public EventLoop { public: DummyEventLoop(); - ~DummyEventLoop(); + virtual ~DummyEventLoop(); void processEvents() { while (!events_.empty()) { handleEvent(events_[0]); events_.pop_front(); } diff --git a/Swiften/EventLoop/Qt/QtEventLoop.h b/Swiften/EventLoop/Qt/QtEventLoop.h index 275ba4b..0e048e5 100644 --- a/Swiften/EventLoop/Qt/QtEventLoop.h +++ b/Swiften/EventLoop/Qt/QtEventLoop.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -13,13 +13,13 @@ #include <Swiften/EventLoop/EventLoop.h> namespace Swift { class QtEventLoop : public QObject, public EventLoop { public: QtEventLoop() {} - ~QtEventLoop() { + virtual ~QtEventLoop() { QCoreApplication::removePostedEvents(this); } virtual void post(const Swift::Event& event) { QCoreApplication::postEvent(this, new Event(event)); } diff --git a/Swiften/EventLoop/SimpleEventLoop.h b/Swiften/EventLoop/SimpleEventLoop.h index 47f72b4..eedaf88 100644 --- a/Swiften/EventLoop/SimpleEventLoop.h +++ b/Swiften/EventLoop/SimpleEventLoop.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -15,13 +15,13 @@ #include <Swiften/EventLoop/EventLoop.h> namespace Swift { class SWIFTEN_API SimpleEventLoop : public EventLoop { public: SimpleEventLoop(); - ~SimpleEventLoop(); + virtual ~SimpleEventLoop(); void run() { doRun(false); } void runUntilEvents() { |