mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Inline Class::get(const Ptr& ptr)
This commit is contained in:
parent
b8cd3f3915
commit
9e7d670745
2 changed files with 4 additions and 6 deletions
|
@ -244,11 +244,6 @@ namespace MWWorld
|
|||
return *iter->second;
|
||||
}
|
||||
|
||||
const Class& Class::get (const Ptr& ptr)
|
||||
{
|
||||
return get (ptr.getTypeName());
|
||||
}
|
||||
|
||||
bool Class::isPersistent(const Ptr &ptr) const
|
||||
{
|
||||
throw std::runtime_error ("class does not support persistence");
|
||||
|
|
|
@ -230,7 +230,10 @@ namespace MWWorld
|
|||
static const Class& get (const std::string& key);
|
||||
///< If there is no class for this \a key, an exception is thrown.
|
||||
|
||||
static const Class& get (const Ptr& ptr);
|
||||
static const Class& get (const Ptr& ptr)
|
||||
{
|
||||
return get (ptr.getTypeName());
|
||||
}
|
||||
///< If there is no class for this pointer, an exception is thrown.
|
||||
|
||||
static void registerClass (const std::string& key, boost::shared_ptr<Class> instance);
|
||||
|
|
Loading…
Reference in a new issue