hybrid iterator fix and improvement #109

Merged
gaisser merged 5 commits from KSat/fsfw:mueller_HybridIterator into master 2020-07-14 11:40:49 +02:00
Owner

I think there was a mistake (using a pointer where no pointer was passed).
Also, I am not sure what happens if a bool is initialized with NULL and I am not sure this was intended.

I think there was a mistake (using a pointer where no pointer was passed). Also, I am not sure what happens if a bool is initialized with NULL and I am not sure this was intended.
muellerr added the
bug
label 2020-06-17 20:58:46 +02:00
gaisser self-assigned this 2020-06-23 20:16:16 +02:00
gaisser requested changes 2020-06-23 20:17:14 +02:00
gaisser left a comment
Owner

There is another issue in the other constructor. End(NULL) can now be removed.

There is another issue in the other constructor. End(NULL) can now be removed.
@ -68,3 +66,2 @@
bool operator==(HybridIterator other) {
return value == other->value;
bool operator==(const HybridIterator& other) {
Owner

This function can also be const

This function can also be const
@ -71,3 +69,3 @@
}
bool operator!=(HybridIterator other) {
bool operator!=(const HybridIterator& other) {
Owner

This function can be const as well

This function can be const as well
gaisser reviewed 2020-06-25 18:07:26 +02:00
@ -90,3 +87,4 @@
T *end = nullptr;
};
#endif /* HYBRIDITERATOR_H_ */
Owner

This is picky, but the comment is wrong :P

This is picky, but the comment is wrong :P
gaisser closed this pull request 2020-07-14 11:40:49 +02:00
gaisser deleted branch mueller_HybridIterator 2020-07-14 11:40:54 +02:00
Sign in to join this conversation.
No description provided.