Skip to content

Commit

Permalink
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jun 6, 2013
1 parent 6b3e553 commit 7734717
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions src/script/common/c_content.h
Expand Up @@ -39,19 +39,19 @@ extern "C" {
#include "irrlichttypes_bloated.h"
#include "util/string.h"

class MapNode;
struct MapNode;
class INodeDefManager;
class PointedThing;
class ItemStack;
class ItemDefinition;
class ToolCapabilities;
class ObjectProperties;
class SimpleSoundSpec;
class ServerSoundParams;
struct PointedThing;
struct ItemStack;
struct ItemDefinition;
struct ToolCapabilities;
struct ObjectProperties;
struct SimpleSoundSpec;
struct ServerSoundParams;
class Inventory;
class NodeBox;
class ContentFeatures;
class TileDef;
struct NodeBox;
struct ContentFeatures;
struct TileDef;
class Server;
struct DigParams;
struct HitParams;
Expand Down
4 changes: 2 additions & 2 deletions src/script/cpp_api/s_entity.h
Expand Up @@ -23,8 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "irr_v3d.h"

class ObjectProperties;
class ToolCapabilities;
struct ObjectProperties;
struct ToolCapabilities;

class ScriptApiEntity
: virtual public ScriptApiBase
Expand Down
2 changes: 1 addition & 1 deletion src/script/cpp_api/s_inventory.h
Expand Up @@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "cpp_api/s_base.h"

class ItemStack;
struct ItemStack;

class ScriptApiDetached
: virtual public ScriptApiBase
Expand Down
6 changes: 3 additions & 3 deletions src/script/cpp_api/s_item.h
Expand Up @@ -23,10 +23,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "irr_v3d.h"

class PointedThing;
class ItemStack;
struct PointedThing;
struct ItemStack;
class ServerActiveObject;
class ItemDefinition;
struct ItemDefinition;
class LuaItemStack;
class ModApiItemMod;

Expand Down
2 changes: 1 addition & 1 deletion src/script/cpp_api/s_node.h
Expand Up @@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "cpp_api/s_nodemeta.h"

class MapNode;
struct MapNode;
class ServerActiveObject;

class ScriptApiNode
Expand Down
2 changes: 1 addition & 1 deletion src/script/cpp_api/s_nodemeta.h
Expand Up @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_item.h"
#include "irr_v3d.h"

class ItemStack;
struct ItemStack;

class ScriptApiNodemeta
: virtual public ScriptApiBase,
Expand Down

0 comments on commit 7734717

Please sign in to comment.