From 83dd35dbc99c68f955a6571a55a5a0227ffa8eb4 Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Sat, 18 Oct 2014 03:33:19 +0400 Subject: [PATCH] Make alertdispatcher.h self contained and replace include libtorrent/session with forward declaration --- src/qtlibtorrent/alertdispatcher.cpp | 1 + src/qtlibtorrent/alertdispatcher.h | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/qtlibtorrent/alertdispatcher.cpp b/src/qtlibtorrent/alertdispatcher.cpp index ccfd3308c..1ef90885c 100644 --- a/src/qtlibtorrent/alertdispatcher.cpp +++ b/src/qtlibtorrent/alertdispatcher.cpp @@ -30,6 +30,7 @@ #include "alertdispatcher.h" +#include #include #include diff --git a/src/qtlibtorrent/alertdispatcher.h b/src/qtlibtorrent/alertdispatcher.h index aa2a9ec1f..5ebaf9bc1 100644 --- a/src/qtlibtorrent/alertdispatcher.h +++ b/src/qtlibtorrent/alertdispatcher.h @@ -36,7 +36,14 @@ #include #include #include -#include + +#include +#include + +namespace libtorrent { + class session; + class alert; +} class QAlertDispatcher : public QObject { Q_OBJECT