Respect base virtual functions' signatures
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Aug 2011 14:15:53 +0000 (16:15 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Aug 2011 14:15:53 +0000 (16:15 +0200)
src/debug.h
src/player.h

index 234b7c74afd4dbdd6290ea792217267f93cb0a72..f3cfe88b338209bf68ed0a3ba1980253cab9fc0f 100644 (file)
@@ -85,7 +85,7 @@ public:
                
                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++)
                {
index 78ca149488370fe0424c3f0e237acad9367792a0..b91c3cb1b71074709b63f66104bc8119ea506ef8 100644 (file)
@@ -62,7 +62,7 @@ public:
                return m_position;
        }
 
-       virtual void setPosition(v3f position)
+       virtual void setPosition(const v3f &position)
        {
                m_position = position;
        }
@@ -206,7 +206,7 @@ public:
                return m_box;
        }
 
-       void setPosition(v3f position)
+       void setPosition(const v3f &position)
        {
                m_oldpos = m_showpos;