summaryrefslogtreecommitdiff
path: root/methods/rsh.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-09-19 19:14:19 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-09-19 19:14:19 +0200
commit472ff00ef2e48383805d281c6364ec27839e3f4d (patch)
tree6f81e83690167fc78f3bbd3dcf03cf83cdcc60f6 /methods/rsh.h
parent8f3ba4e8708cb72be19dacc2af4f601ee5fea292 (diff)
use forward declaration in headers if possible instead of includes
Diffstat (limited to 'methods/rsh.h')
-rw-r--r--methods/rsh.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/methods/rsh.h b/methods/rsh.h
index 7bebe29a0..d7efa3f06 100644
--- a/methods/rsh.h
+++ b/methods/rsh.h
@@ -12,9 +12,9 @@
#include <string>
#include <apt-pkg/strutl.h>
-#include <apt-pkg/hashes.h>
-#include <apt-pkg/acquire-method.h>
-#include <apt-pkg/fileutl.h>
+
+class Hashes;
+class FileFd;
class RSHConn
{
@@ -50,6 +50,8 @@ class RSHConn
~RSHConn();
};
+#include <apt-pkg/acquire-method.h>
+
class RSHMethod : public pkgAcqMethod
{
virtual bool Fetch(FetchItem *Itm);