1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-25 00:48:52 -05:00

Respect base virtual functions' signatures

This commit is contained in:
Giuseppe Bilotta 2011-08-08 16:15:53 +02:00
parent 163c38e175
commit 34492ce480
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ public:
return c; return c;
} }
int xsputn(const char *s, int n) std::streamsize xsputn(const char *s, std::streamsize n)
{ {
for(int i=0; i<DEBUGSTREAM_COUNT; i++) for(int i=0; i<DEBUGSTREAM_COUNT; i++)
{ {

View File

@ -62,7 +62,7 @@ public:
return m_position; return m_position;
} }
virtual void setPosition(v3f position) virtual void setPosition(const v3f &position)
{ {
m_position = position; m_position = position;
} }
@ -206,7 +206,7 @@ public:
return m_box; return m_box;
} }
void setPosition(v3f position) void setPosition(const v3f &position)
{ {
m_oldpos = m_showpos; m_oldpos = m_showpos;