Skip to content

Commit cc957e6

Browse files
jesse99brson
authored andcommitted
---
yaml --- r: 34138 b: refs/heads/snap-stage3 c: cf1c3d2 h: refs/heads/master v: v3
1 parent 7d3720a commit cc957e6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fc740a729721d5063be367de99b5fcb62a99f2d7
4+
refs/heads/snap-stage3: cf1c3d2da0cb6ebc4c34c122cde3a76523417ed4
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/rt/util/indexed_list.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
class indexed_list_object {
1919
public:
20+
virtual ~indexed_list_object() {}
2021
int32_t list_index;
2122
};
2223

@@ -39,22 +40,22 @@ class indexed_list_element : public indexed_list_object {
3940
template<typename T> class indexed_list {
4041
array_list<T*> list;
4142
public:
42-
virtual int32_t append(T *value);
43-
virtual bool pop(T **value);
43+
int32_t append(T *value);
44+
bool pop(T **value);
4445
/**
4546
* Same as pop(), except that it returns NULL if the list is empty.
4647
*/
47-
virtual T* pop_value();
48-
virtual size_t length() const {
48+
T* pop_value();
49+
size_t length() const {
4950
return list.size();
5051
}
51-
virtual bool is_empty() const {
52+
bool is_empty() const {
5253
return list.is_empty();
5354
}
54-
virtual int32_t remove(T* value);
55-
virtual T * operator[](int32_t index);
56-
virtual const T * operator[](int32_t index) const;
57-
virtual ~indexed_list() {}
55+
int32_t remove(T* value);
56+
T * operator[](int32_t index);
57+
const T * operator[](int32_t index) const;
58+
~indexed_list() {}
5859
};
5960

6061
template<typename T> int32_t

0 commit comments

Comments
 (0)