mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Use qualifed id instead of virtual function calls in CVertexBuffer constructors
Another find by cppcheck tool git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6448 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
bda6bb8595
commit
cfc4b29a2c
@ -98,18 +98,18 @@ namespace scene
|
|||||||
CVertexBuffer(video::E_VERTEX_TYPE vertexType) : Vertices(0),
|
CVertexBuffer(video::E_VERTEX_TYPE vertexType) : Vertices(0),
|
||||||
MappingHint(EHM_NEVER), ChangedID(1)
|
MappingHint(EHM_NEVER), ChangedID(1)
|
||||||
{
|
{
|
||||||
setType(vertexType);
|
CVertexBuffer::setType(vertexType);
|
||||||
}
|
}
|
||||||
|
|
||||||
CVertexBuffer(const IVertexBuffer &VertexBufferCopy) :
|
CVertexBuffer(const IVertexBuffer &VertexBufferCopy) :
|
||||||
Vertices(0), MappingHint(EHM_NEVER),
|
Vertices(0), MappingHint(EHM_NEVER),
|
||||||
ChangedID(1)
|
ChangedID(1)
|
||||||
{
|
{
|
||||||
setType(VertexBufferCopy.getType());
|
CVertexBuffer::setType(VertexBufferCopy.getType());
|
||||||
reallocate(VertexBufferCopy.size());
|
CVertexBuffer::reallocate(VertexBufferCopy.size());
|
||||||
|
|
||||||
for (u32 n=0;n<VertexBufferCopy.size();++n)
|
for (u32 n=0;n<VertexBufferCopy.size();++n)
|
||||||
push_back(VertexBufferCopy[n]);
|
CVertexBuffer::push_back(VertexBufferCopy[n]);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~CVertexBuffer()
|
virtual ~CVertexBuffer()
|
||||||
|
Loading…
Reference in New Issue
Block a user