Fix Lint broken by b662a4577d692329b9ca83525e6039f2ddcd1ac1
[oweals/minetest.git] / src / activeobject.h
index 48f078d3f28183faf37b8a97e157b19667e07b15..71b9df5147b545a7f3eb237eda5c987349134757 100644 (file)
@@ -43,7 +43,7 @@ enum ActiveObjectType {
 
 struct ActiveObjectMessage
 {
-       ActiveObjectMessage(u16 id_, bool reliable_=true, std::string data_=""):
+       ActiveObjectMessage(u16 id_, bool reliable_=true, const std::string &data_ = "") :
                id(id_),
                reliable(reliable_),
                datastring(data_)
@@ -64,7 +64,7 @@ public:
                m_id(id)
        {
        }
-       
+
        u16 getId()
        {
                return m_id;
@@ -76,8 +76,8 @@ public:
        }
 
        virtual ActiveObjectType getType() const = 0;
-       virtual bool getCollisionBox(aabb3f *toset) = 0;
-       virtual bool collideWithObjects() = 0;
+       virtual bool getCollisionBox(aabb3f *toset) const = 0;
+       virtual bool collideWithObjects() const = 0;
 protected:
        u16 m_id; // 0 is invalid, "no id"
 };