(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
This commit is contained in:
@@ -294,16 +294,7 @@ protected:
|
||||
}
|
||||
|
||||
public:
|
||||
/**
|
||||
* Check whether we can allocate an item in this pool. This to prevent the
|
||||
* need to actually construct the object and then destructing it again,
|
||||
* which could be *very* costly.
|
||||
* @return true if and only if at least ONE item can be allocated.
|
||||
*/
|
||||
static inline bool CanAllocateItem()
|
||||
{
|
||||
return AllocateRaw() != NULL;
|
||||
}
|
||||
static bool CanAllocateItem();
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user