Mark every bool conversion as explicit

This commit is contained in:
Jérôme Leclercq
2017-06-21 18:10:46 +02:00
parent d4532ce7ff
commit b2e23cfb56
9 changed files with 9 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ namespace Nz
inline bool IndexBuffer::IsValid() const
{
return m_buffer;
return m_buffer.IsValid();
}
inline void* IndexBuffer::Map(BufferAccess access, UInt32 startIndex, UInt32 length)

View File

@@ -39,7 +39,7 @@ namespace Nz
inline bool VertexBuffer::IsValid() const
{
return m_buffer && m_vertexDeclaration;
return m_buffer.IsValid() && m_vertexDeclaration.IsValid();
}
template<typename... Args>