From 20eb7a844cdc5ced09501aa2d2493827aeccd7df Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Thu, 20 Jan 2011 12:26:11 +0000 Subject: - Migrate to qt4 PR: ports/154148 Submitted by: G. Paul Ziemba Feature safe: yes --- astro/xglobe/files/patch-markerlist.h | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 astro/xglobe/files/patch-markerlist.h (limited to 'astro/xglobe/files/patch-markerlist.h') diff --git a/astro/xglobe/files/patch-markerlist.h b/astro/xglobe/files/patch-markerlist.h new file mode 100644 index 000000000000..82cb67d79370 --- /dev/null +++ b/astro/xglobe/files/patch-markerlist.h @@ -0,0 +1,36 @@ +--- markerlist.h.orig 1999-07-13 11:14:07.000000000 -0700 ++++ markerlist.h 2011-01-18 14:22:52.000000000 -0800 +@@ -56,21 +56,23 @@ + class MarkerList + { + public: +- MarkerList() { list.setAutoDelete(TRUE); } +- ~MarkerList() { list.clear(); } +- inline void append(const Location *l) { list.append(l); } +- inline Location *first() { return list.first(); } +- inline Location *last() { return list.last(); } +- inline Location *next() { return list.next(); } +- inline Location *prev() { return list.prev(); } +- inline Location *current() { return list.current(); } ++ MarkerList() { } ++ ~MarkerList() { qDeleteAll(list); list.clear(); } ++ inline void append(Location *l) { list.append(l); } ++// inline Location *first() { return list.first(); } ++// inline Location *last() { return list.last(); } ++// inline Location *next() { return list.next(); } ++// inline Location *prev() { return list.prev(); } ++// inline Location *current() { return list.current(); } ++ inline Location *atindex(int i) {return list[i]; } // Q&D + inline uint count() { return list.count(); } +- inline void clear() { list.clear(); } ++ inline void clear() { qDeleteAll(list); list.clear(); } ++ inline int size() { return list.size(); } + + bool loadMarkerFile(const char *filename); + + protected: +- QList list; ++ QList list; + }; + + #endif -- cgit v1.2.3