compilation errors

This commit is contained in:
Enno Rehling 2005-11-27 10:06:18 +00:00
parent d808de65c8
commit 383dc8ad15
2 changed files with 2 additions and 11 deletions

View File

@ -2,13 +2,10 @@
#define LUA_OBJECTS_H #define LUA_OBJECTS_H
#include <attributes/object.h> #include <attributes/object.h>
#include <luabind/object.hpp>
struct lua_State; struct lua_State;
namespace luabind {
class object;
};
namespace eressea { namespace eressea {
class objects { class objects {
@ -28,7 +25,7 @@ namespace eressea {
template<class T> eressea::objects template<class T> eressea::objects
get_objects(const T& parent) get_objects(const T& parent)
{ {
return eressea::objects(&const_cast<attrib *>(parent.attribs)); return eressea::objects(&const_cast<attrib *&>(parent.attribs));
} }
}; };

View File

@ -243,12 +243,6 @@ region_move(region& r, short x, short y)
rhash(&r); rhash(&r);
} }
eressea::objects
region_objects(const region& r)
{
return eressea::objects(&const_cast<attrib *>(r.attribs));
}
void void
bind_region(lua_State * L) bind_region(lua_State * L)
{ {