Added override specifiers to overridden functions.
Needed for clang-11 compatibility.
This commit is contained in:
parent
04cb4996e2
commit
0137e71f6b
@ -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);
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
} ;
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user