- Fix compilation with Qt 4.4

- Fix compilation with older boost libraries
This commit is contained in:
Christophe Dumez
2009-11-28 21:46:46 +00:00
parent 88b77a63ed
commit 9323660c79
9 changed files with 68 additions and 32 deletions

View File

@@ -32,13 +32,19 @@
#define TORRENTPERSISTENTDATA_H
#include <QSettings>
#include <QHash>
#include <QVariant>
#include <libtorrent/magnet_uri.hpp>
#include "qtorrenthandle.h"
#include "misc.h"
#ifdef QT_4_5
#include <QHash>
#else
#include <QMap>
#define QHash QMap
#define toHash toMap
#endif
class TorrentTempData {
public:
static bool hasTempData(QString hash) {
@@ -256,4 +262,8 @@ public:
}
};
#undef QHash
#undef toHash
#endif // TORRENTPERSISTENTDATA_H