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 Jan 28, 2024
1 parent 80d6021 commit 8811a16
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 @@ -176,7 +176,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 8811a16

Please sign in to comment.