From 0183c05ee0ed0c6566a860119ee93cf88ba7d9ee Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 8 Dec 2014 09:06:31 +0100 Subject: [PATCH] Fix struct vs. class in forward declarations --- src/mg_decoration.h | 2 +- src/mg_ore.h | 2 +- src/rollback.h | 4 ++-- src/server.h | 2 +- src/wieldmesh.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mg_decoration.h b/src/mg_decoration.h index c698710b5..3262924b0 100644 --- a/src/mg_decoration.h +++ b/src/mg_decoration.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "mapgen.h" -class NoiseParams; +struct NoiseParams; class Mapgen; class ManualMapVoxelManipulator; class PseudoRandom; diff --git a/src/mg_ore.h b/src/mg_ore.h index 4bf415734..16fb50cd5 100644 --- a/src/mg_ore.h +++ b/src/mg_ore.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/string.h" #include "mapgen.h" -class NoiseParams; +struct NoiseParams; class Noise; class Mapgen; class ManualMapVoxelManipulator; diff --git a/src/rollback.h b/src/rollback.h index 2e6955c8d..c57e38ab0 100644 --- a/src/rollback.h +++ b/src/rollback.h @@ -29,8 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc., class IGameDef; -class ActionRow; -class Entity; +struct ActionRow; +struct Entity; class RollbackManager: public IRollbackManager { diff --git a/src/server.h b/src/server.h index 4292892c5..e9cf0a25c 100644 --- a/src/server.h +++ b/src/server.h @@ -49,7 +49,7 @@ class Inventory; class Player; class PlayerSAO; class IRollbackManager; -class RollbackAction; +struct RollbackAction; class EmergeManager; class GameScripting; class ServerEnvironment; diff --git a/src/wieldmesh.h b/src/wieldmesh.h index 3b39dbfac..b7739f18c 100644 --- a/src/wieldmesh.h +++ b/src/wieldmesh.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_extrabloated.h" #include -class ItemStack; +struct ItemStack; class IGameDef; class ITextureSource; struct TileSpec;