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 5, 2023
1 parent 0b9e50a commit 73578ff
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; }
iterator operator++(int a) { a++; iterator tmp = *this; ++(*this); return tmp; }
MagicFlare * operator->() { return m_ptr; }
Expand Down

0 comments on commit 73578ff

Please sign in to comment.