summaryrefslogtreecommitdiff
path: root/astro/xglobe/files/patch-markerlist.h
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2011-01-20 12:26:11 +0000
committerPav Lucistnik <pav@FreeBSD.org>2011-01-20 12:26:11 +0000
commit20eb7a844cdc5ced09501aa2d2493827aeccd7df (patch)
treedf9c9431e56469f911b3adfd5ca13b5fc81e848e /astro/xglobe/files/patch-markerlist.h
parentUnbreak on amd64 (diff)
- Migrate to qt4
PR: ports/154148 Submitted by: G. Paul Ziemba <p-fbsd-bugs@ziemba.us> Feature safe: yes
Diffstat (limited to 'astro/xglobe/files/patch-markerlist.h')
-rw-r--r--astro/xglobe/files/patch-markerlist.h36
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