mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 00:15:51 +00:00
Use provided names for CountedObject instead of typeid()
This commit is contained in:
@@ -101,6 +101,8 @@ public:
|
||||
getCounter ().decrement ();
|
||||
}
|
||||
|
||||
virtual char const* getCountedObjectName () = 0;
|
||||
|
||||
private:
|
||||
class Counter : public CountedObjects::CounterBase
|
||||
{
|
||||
|
||||
@@ -12,6 +12,8 @@ class STObject
|
||||
, public CountedObject <STObject>
|
||||
{
|
||||
public:
|
||||
char const* getCountedObjectName () { return "STObject"; }
|
||||
|
||||
STObject () : mType (NULL)
|
||||
{
|
||||
;
|
||||
@@ -323,6 +325,8 @@ class STArray
|
||||
, public CountedObject <STArray>
|
||||
{
|
||||
public:
|
||||
char const* getCountedObjectName () { return "STArray"; }
|
||||
|
||||
typedef boost::ptr_vector<STObject> vector;
|
||||
typedef boost::ptr_vector<STObject>::iterator iterator;
|
||||
typedef boost::ptr_vector<STObject>::const_iterator const_iterator;
|
||||
|
||||
Reference in New Issue
Block a user