Skip to content

Commit 7734717

Browse files
committed
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
1 parent 6b3e553 commit 7734717

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

src/script/common/c_content.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ extern "C" {
3939
#include "irrlichttypes_bloated.h"
4040
#include "util/string.h"
4141

42-
class MapNode;
42+
struct MapNode;
4343
class INodeDefManager;
44-
class PointedThing;
45-
class ItemStack;
46-
class ItemDefinition;
47-
class ToolCapabilities;
48-
class ObjectProperties;
49-
class SimpleSoundSpec;
50-
class ServerSoundParams;
44+
struct PointedThing;
45+
struct ItemStack;
46+
struct ItemDefinition;
47+
struct ToolCapabilities;
48+
struct ObjectProperties;
49+
struct SimpleSoundSpec;
50+
struct ServerSoundParams;
5151
class Inventory;
52-
class NodeBox;
53-
class ContentFeatures;
54-
class TileDef;
52+
struct NodeBox;
53+
struct ContentFeatures;
54+
struct TileDef;
5555
class Server;
5656
struct DigParams;
5757
struct HitParams;

src/script/cpp_api/s_entity.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2323
#include "cpp_api/s_base.h"
2424
#include "irr_v3d.h"
2525

26-
class ObjectProperties;
27-
class ToolCapabilities;
26+
struct ObjectProperties;
27+
struct ToolCapabilities;
2828

2929
class ScriptApiEntity
3030
: virtual public ScriptApiBase

src/script/cpp_api/s_inventory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222

2323
#include "cpp_api/s_base.h"
2424

25-
class ItemStack;
25+
struct ItemStack;
2626

2727
class ScriptApiDetached
2828
: virtual public ScriptApiBase

src/script/cpp_api/s_item.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2323
#include "cpp_api/s_base.h"
2424
#include "irr_v3d.h"
2525

26-
class PointedThing;
27-
class ItemStack;
26+
struct PointedThing;
27+
struct ItemStack;
2828
class ServerActiveObject;
29-
class ItemDefinition;
29+
struct ItemDefinition;
3030
class LuaItemStack;
3131
class ModApiItemMod;
3232

src/script/cpp_api/s_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2626
#include "cpp_api/s_base.h"
2727
#include "cpp_api/s_nodemeta.h"
2828

29-
class MapNode;
29+
struct MapNode;
3030
class ServerActiveObject;
3131

3232
class ScriptApiNode

src/script/cpp_api/s_nodemeta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2424
#include "cpp_api/s_item.h"
2525
#include "irr_v3d.h"
2626

27-
class ItemStack;
27+
struct ItemStack;
2828

2929
class ScriptApiNodemeta
3030
: virtual public ScriptApiBase,

0 commit comments

Comments
 (0)