Skip to content

Commit

Permalink
MagicFlare: Mark constructor as explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
bsxf-47 committed Oct 7, 2023
1 parent 6cafc51 commit 97060bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/particle/MagicFlare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class MagicFlareContainer {
class iterator {
using iterator_category = std::forward_iterator_tag;
public:
iterator(MagicFlare * ptr) : m_ptr(ptr) {}
explicit iterator(MagicFlare * ptr) : m_ptr(ptr) {}
iterator operator++() { ++m_ptr; return *this; } // prefix increment
iterator operator++(int a) { a++; iterator tmp = *this; ++(*this); return tmp; } // postfix increment
MagicFlare * operator->() { return m_ptr; }
Expand Down

0 comments on commit 97060bb

Please sign in to comment.