Issue #217: moved some functino implementations from ptr.hpp to ptr.cpp

This commit is contained in:
Marc Zinnschlag 2012-03-21 12:29:07 +01:00
parent 0adbe258fd
commit a0ee2954bd
2 changed files with 14 additions and 10 deletions

View file

@ -3,6 +3,18 @@
#include <cassert> #include <cassert>
ESM::CellRef& MWWorld::Ptr::getCellRef() const
{
assert (mCellRef);
return *mCellRef;
}
MWWorld::RefData& MWWorld::Ptr::getRefData() const
{
assert (mRefData);
return *mRefData;
}
void MWWorld::Ptr::setContainerStore (ContainerStore *store) void MWWorld::Ptr::setContainerStore (ContainerStore *store)
{ {
assert (store); assert (store);

View file

@ -67,17 +67,9 @@ namespace MWWorld
return boost::any_cast<ESMS::LiveCellRef<T, RefData>*> (mPtr); return boost::any_cast<ESMS::LiveCellRef<T, RefData>*> (mPtr);
} }
ESM::CellRef& getCellRef() const ESM::CellRef& getCellRef() const;
{
assert (mCellRef);
return *mCellRef;
}
RefData& getRefData() const RefData& getRefData() const;
{
assert (mRefData);
return *mRefData;
}
Ptr::CellStore *getCell() const Ptr::CellStore *getCell() const
{ {