diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/Items/ItemFood.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to 'src/Items/ItemFood.h')
-rw-r--r-- | src/Items/ItemFood.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/Items/ItemFood.h b/src/Items/ItemFood.h index 7ec879b5d..a70351305 100644 --- a/src/Items/ItemFood.h +++ b/src/Items/ItemFood.h @@ -7,24 +7,18 @@ -class cItemFoodHandler: - public cItemHandler +class cItemFoodHandler : public cItemHandler { using Super = cItemHandler; -public: - - constexpr cItemFoodHandler(int a_ItemType, FoodInfo a_FoodInfo): - Super(a_ItemType), - m_FoodInfo(a_FoodInfo) + public: + constexpr cItemFoodHandler(int a_ItemType, FoodInfo a_FoodInfo) : + Super(a_ItemType), m_FoodInfo(a_FoodInfo) { } - virtual bool IsFood(void) const override - { - return true; - } + virtual bool IsFood(void) const override { return true; } virtual FoodInfo GetFoodInfo(const cItem * a_Item) const override { @@ -47,14 +41,13 @@ public: return true; } -protected: + protected: FoodInfo m_FoodInfo; ~cItemFoodHandler() = default; }; -class cItemSimpleFoodHandler final: - public cItemFoodHandler +class cItemSimpleFoodHandler final : public cItemFoodHandler { using cItemFoodHandler::cItemFoodHandler; }; |