From 9ee47e59995f858ec531b3ee467f131594e4ba1f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 13 Apr 2020 18:38:06 +0200 Subject: Using Super. --- src/Items/ItemSapling.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Items/ItemSapling.h') diff --git a/src/Items/ItemSapling.h b/src/Items/ItemSapling.h index dbcb12be5..e8deb37a9 100644 --- a/src/Items/ItemSapling.h +++ b/src/Items/ItemSapling.h @@ -7,13 +7,15 @@ -class cItemSaplingHandler : public cItemHandler +class cItemSaplingHandler: + public cItemHandler { - typedef cItemHandler super; + using Super = cItemHandler; public: - cItemSaplingHandler(int a_ItemType) - : cItemHandler(a_ItemType) + + cItemSaplingHandler(int a_ItemType): + Super(a_ItemType) { } @@ -25,7 +27,7 @@ public: BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta ) override { - bool res = super::GetPlacementBlockTypeMeta( + bool res = Super::GetPlacementBlockTypeMeta( a_World, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, -- cgit v1.2.3