Using Super.
This commit is contained in:
committed by
Alexander Harkness
parent
f931590bf0
commit
9ee47e5999
@@ -80,7 +80,7 @@ Since only the header is actually in the memory, this number can be high, but st
|
||||
// cWSSAnvil:
|
||||
|
||||
cWSSAnvil::cWSSAnvil(cWorld * a_World, int a_CompressionFactor) :
|
||||
super(a_World),
|
||||
Super(a_World),
|
||||
m_CompressionFactor(a_CompressionFactor)
|
||||
{
|
||||
// Create a level.dat file for mapping tools, if it doesn't already exist:
|
||||
|
||||
@@ -44,10 +44,10 @@ enum
|
||||
|
||||
|
||||
|
||||
class cWSSAnvil :
|
||||
class cWSSAnvil:
|
||||
public cWSSchema
|
||||
{
|
||||
typedef cWSSchema super;
|
||||
using Super = cWSSchema;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ protected:
|
||||
// cWorldStorage:
|
||||
|
||||
cWorldStorage::cWorldStorage(void) :
|
||||
super("cWorldStorage"),
|
||||
Super("cWorldStorage"),
|
||||
m_World(nullptr),
|
||||
m_SaveSchema(nullptr)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ void cWorldStorage::WaitForFinish(void)
|
||||
// Wait for the thread to finish:
|
||||
m_ShouldTerminate = true;
|
||||
m_Event.Set(); // Wake up the thread if waiting
|
||||
super::Stop();
|
||||
Super::Stop();
|
||||
LOGD("World storage thread finished");
|
||||
}
|
||||
|
||||
|
||||
@@ -51,14 +51,14 @@ typedef std::list<cWSSchema *> cWSSchemaList;
|
||||
|
||||
|
||||
/** The actual world storage class */
|
||||
class cWorldStorage :
|
||||
class cWorldStorage:
|
||||
public cIsThread
|
||||
{
|
||||
typedef cIsThread super;
|
||||
using Super = cIsThread;
|
||||
|
||||
public:
|
||||
|
||||
cWorldStorage(void);
|
||||
cWorldStorage();
|
||||
virtual ~cWorldStorage() override;
|
||||
|
||||
/** Queues a chunk to be loaded, asynchronously.
|
||||
|
||||
Reference in New Issue
Block a user