1
0

Added override specifiers to overridden functions.

Needed for clang-11 compatibility.
This commit is contained in:
Mattes D 2021-04-12 10:12:03 +02:00 committed by Tiger Wang
parent 04cb4996e2
commit 0137e71f6b
6 changed files with 7 additions and 7 deletions

View File

@ -166,7 +166,7 @@ void cCommandBlockEntity::Execute()
public:
CommandBlockOutCb(cCommandBlockEntity * a_CmdBlock) : m_CmdBlock(a_CmdBlock) {}
virtual void Out(const AString & a_Text)
virtual void Out(const AString & a_Text) override
{
// Overwrite field
m_CmdBlock->SetLastOutput(cClientHandle::FormatChatPrefix(m_CmdBlock->GetWorld()->ShouldUseChatPrefixes(), "SUCCESS", cChatColor::Green, cChatColor::White) + a_Text);

View File

@ -582,7 +582,7 @@ public:
}
virtual void GetInts(int a_MinX, int a_MinZ, typename Super::Values & a_Values)
virtual void GetInts(int a_MinX, int a_MinZ, typename Super::Values & a_Values) override
{
// Generate the underlying biome groups:
int lowerValues[m_UnderlyingSizeX * m_UnderlyingSizeZ];

View File

@ -256,7 +256,7 @@ public:
int a_ProbLevelCorridor, int a_ProbLevelCrossing, int a_ProbLevelStaircase
);
~cMineShaftSystem();
virtual ~cMineShaftSystem() override;
/** Creates new cMineShaft descendant connected at the specified point, heading the specified direction,
if it fits, appends it to the list and calls its AppendBranches()
@ -271,7 +271,7 @@ public:
bool CanAppend(const cCuboid & a_BoundingBox);
// cGridStructGen::cStructure overrides:
virtual void DrawIntoChunk(cChunkDesc & a_Chunk);
virtual void DrawIntoChunk(cChunkDesc & a_Chunk) override;
} ;

View File

@ -847,7 +847,7 @@ public:
}
virtual void GetInts(int a_MinX, int a_MinZ, size_t a_SizeX, size_t a_SizeZ, int *a_Values)
virtual void GetInts(int a_MinX, int a_MinZ, size_t a_SizeX, size_t a_SizeZ, int * a_Values) override
{
// Generate the underlying biome groups:
size_t lowerSizeX = a_SizeX + 2;

View File

@ -21,7 +21,7 @@ public:
{
}
virtual void OnUpdate(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item)
virtual void OnUpdate(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item) override
{
cMap * Map = a_World->GetMapManager().GetMapData(static_cast<unsigned>(a_Item.m_ItemDamage));

View File

@ -35,7 +35,7 @@ public:
} ;
cDelayedFluidSimulatorChunkData(int a_TickDelay);
virtual ~cDelayedFluidSimulatorChunkData();
virtual ~cDelayedFluidSimulatorChunkData() override;
/** Slots, one for each delay tick, each containing the blocks to simulate */
cSlot * m_Slots;