Core/Misc: Future msvc warning fixes
This commit is contained in:
1 parent
814a095875
commit
47048f3dc5
2 files changed
+8
-2
No files matched your search
@@ -389,7 +389,7 @@ bool SpellEffectInfo::IsEffect() const
|
||||
|
||||
bool SpellEffectInfo::IsEffect(SpellEffects effectName) const
|
||||
{
|
||||
return Effect == uint32(effectName);
|
||||
return Effect == effectName;
|
||||
}
|
||||
|
||||
bool SpellEffectInfo::IsAura() const
|
||||
|
||||
@@ -22,9 +22,15 @@
|
||||
#include <iterator>
|
||||
|
||||
template<class T>
|
||||
class DBStorageIterator : public std::iterator<std::forward_iterator_tag, T>
|
||||
class DBStorageIterator
|
||||
{
|
||||
public:
|
||||
using iterator_category = std::forward_iterator_tag;
|
||||
using value_type = T;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using pointer = T*;
|
||||
using reference = T&;
|
||||
|
||||
DBStorageIterator() : _index(nullptr), _pos(0), _end(0) { }
|
||||
DBStorageIterator(T** index, uint32 size, uint32 pos = 0) : _index(index), _pos(pos), _end(size)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user