Mark every bool conversion as explicit
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user