aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-07-19 10:25:02 -0500
committerrichiesams2013-08-04 13:32:29 -0500
commit94000e07811831f1ffdb2575b0cc3513c34a1d36 (patch)
treea0d381e7ebbe8673e27ae5947d3e7d76d6596c4e
parent471364077953509ae7528d3097ca746fe5588f7c (diff)
downloadscummvm-rg350-94000e07811831f1ffdb2575b0cc3513c34a1d36.tar.gz
scummvm-rg350-94000e07811831f1ffdb2575b0cc3513c34a1d36.tar.bz2
scummvm-rg350-94000e07811831f1ffdb2575b0cc3513c34a1d36.zip
ZVISION: Replace includes with forward declarations
-rw-r--r--engines/zvision/lzss_read_stream.h5
-rw-r--r--engines/zvision/script_manager.h7
-rw-r--r--engines/zvision/single_value_container.cpp2
-rw-r--r--engines/zvision/single_value_container.h4
-rw-r--r--engines/zvision/utility.cpp1
-rw-r--r--engines/zvision/utility.h6
-rw-r--r--engines/zvision/zfs_archive.cpp4
-rw-r--r--engines/zvision/zfs_archive.h10
8 files changed, 29 insertions, 10 deletions
diff --git a/engines/zvision/lzss_read_stream.h b/engines/zvision/lzss_read_stream.h
index b2d6085a29..0814220728 100644
--- a/engines/zvision/lzss_read_stream.h
+++ b/engines/zvision/lzss_read_stream.h
@@ -25,9 +25,12 @@
#include "common/types.h"
#include "common/stream.h"
-#include "common/memstream.h"
#include "common/array.h"
+namespace Common {
+class SeekableReadStream;
+}
+
namespace ZVision {
class LzssReadStream : public Common::ReadStream {
diff --git a/engines/zvision/script_manager.h b/engines/zvision/script_manager.h
index 7924eee4c0..2d9bcc3fd5 100644
--- a/engines/zvision/script_manager.h
+++ b/engines/zvision/script_manager.h
@@ -23,14 +23,17 @@
#ifndef ZVISION_SCRIPT_MANAGER_H
#define ZVISION_SCRIPT_MANAGER_H
-#include "common/str.h"
-#include "common/stream.h"
#include "common/hashmap.h"
#include "common/stack.h"
#include "zvision/puzzle.h"
#include "zvision/control.h"
+namespace Common {
+class String;
+class SeekableReadStream;
+}
+
namespace ZVision {
class ZVision;
diff --git a/engines/zvision/single_value_container.cpp b/engines/zvision/single_value_container.cpp
index 7e27098377..0fd758a85e 100644
--- a/engines/zvision/single_value_container.cpp
+++ b/engines/zvision/single_value_container.cpp
@@ -21,7 +21,9 @@
*/
#include "common/scummsys.h"
+
#include "common/textconsole.h"
+#include "common/str.h"
#include "zvision/single_value_container.h"
diff --git a/engines/zvision/single_value_container.h b/engines/zvision/single_value_container.h
index 49c7267f77..593f11c737 100644
--- a/engines/zvision/single_value_container.h
+++ b/engines/zvision/single_value_container.h
@@ -23,7 +23,9 @@
#ifndef ZVISION_OBJECT_H
#define ZVISION_OBJECT_H
-#include "common/str.h"
+namespace Common {
+class String;
+}
namespace ZVision {
diff --git a/engines/zvision/utility.cpp b/engines/zvision/utility.cpp
index 42fadc78c4..bf8e5c91d6 100644
--- a/engines/zvision/utility.cpp
+++ b/engines/zvision/utility.cpp
@@ -23,6 +23,7 @@
#include "common/scummsys.h"
#include "common/tokenizer.h"
+#include "common/file.h"
#include "zvision/utility.h"
#include "zvision/zvision.h"
diff --git a/engines/zvision/utility.h b/engines/zvision/utility.h
index 46f81efb33..e68d0de449 100644
--- a/engines/zvision/utility.h
+++ b/engines/zvision/utility.h
@@ -24,10 +24,12 @@
#ifndef ZVISION_UTILITY_H
#define ZVISION_UTILITY_H
-#include "common/str.h"
-#include "common/file.h"
#include "common/array.h"
+namespace Common {
+class String;
+}
+
namespace ZVision {
class ZVision;
diff --git a/engines/zvision/zfs_archive.cpp b/engines/zvision/zfs_archive.cpp
index fbfe3d3dc4..f815d9ccd3 100644
--- a/engines/zvision/zfs_archive.cpp
+++ b/engines/zvision/zfs_archive.cpp
@@ -22,10 +22,12 @@
#include "common/scummsys.h"
-#include "zvision/zfs_archive.h"
#include "common/hashmap.h"
#include "common/memstream.h"
#include "common/debug.h"
+#include "common/file.h"
+
+#include "zvision/zfs_archive.h"
namespace ZVision {
diff --git a/engines/zvision/zfs_archive.h b/engines/zvision/zfs_archive.h
index cb371f2c87..e683ac1b53 100644
--- a/engines/zvision/zfs_archive.h
+++ b/engines/zvision/zfs_archive.h
@@ -24,8 +24,12 @@
#define ZVISION_ZFS_ARCHIVE_H
#include "common/archive.h"
-#include "common/file.h"
-#include "common/fs.h"
+#include "common/hashmap.h"
+
+
+namespace Common {
+class String;
+}
namespace ZVision {
@@ -48,7 +52,7 @@ struct ZfsEntryHeader {
uint32 unknown;
};
-typedef Common::HashMap<Common::String, ZfsEntryHeader*, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> ZfsEntryHeaderMap;
+typedef Common::HashMap<Common::String, ZfsEntryHeader*> ZfsEntryHeaderMap;
class ZfsArchive : public Common::Archive {
public: