diff options
Diffstat (limited to 'astro/xglobe/files/patch-markerlist.h')
-rw-r--r-- | astro/xglobe/files/patch-markerlist.h | 36 |
1 files changed, 36 insertions, 0 deletions
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<Location> list; ++ QList<Location *> list; + }; + + #endif |