1
0

Using Super.

This commit is contained in:
Mattes D
2020-04-13 18:38:06 +02:00
committed by Alexander Harkness
parent f931590bf0
commit 9ee47e5999
399 changed files with 1815 additions and 1381 deletions

View File

@@ -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:

View File

@@ -44,10 +44,10 @@ enum
class cWSSAnvil :
class cWSSAnvil:
public cWSSchema
{
typedef cWSSchema super;
using Super = cWSSchema;
public:

View File

@@ -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");
}

View File

@@ -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.