Skip to content

Commit

Permalink
Modules: Ensure classes match their header filename
Browse files Browse the repository at this point in the history
Renamed:
- `modules/mono/mono_gd/gd_mono_class_member.h` -> `i_mono_class_member.h`
- `modules/upnp/upnpdevice.h` -> `upnp_device.h`
- `modules/websocket/websocket_multiplayer.h` -> `websocket_multiplayer_peer.h`
  • Loading branch information
akien-mga committed Feb 12, 2019
1 parent c5dcbeb commit fe7e11e
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion modules/mono/mono_gd/gd_mono_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#define GDMONOFIELD_H

#include "gd_mono.h"
#include "gd_mono_class_member.h"
#include "gd_mono_header.h"
#include "i_mono_class_member.h"

class GDMonoField : public IMonoClassMember {

Expand Down
2 changes: 1 addition & 1 deletion modules/mono/mono_gd/gd_mono_method.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#define GD_MONO_METHOD_H

#include "gd_mono.h"
#include "gd_mono_class_member.h"
#include "gd_mono_header.h"
#include "i_mono_class_member.h"

class GDMonoMethod : public IMonoClassMember {

Expand Down
2 changes: 1 addition & 1 deletion modules/mono/mono_gd/gd_mono_property.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#define GD_MONO_PROPERTY_H

#include "gd_mono.h"
#include "gd_mono_class_member.h"
#include "gd_mono_header.h"
#include "i_mono_class_member.h"

class GDMonoProperty : public IMonoClassMember {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* gd_mono_class_member.h */
/* i_mono_class_member.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,8 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef GD_MONO_CLASS_MEMBER_H
#define GD_MONO_CLASS_MEMBER_H
#ifndef I_MONO_CLASS_MEMBER_H
#define I_MONO_CLASS_MEMBER_H

#include "gd_mono_header.h"

Expand Down Expand Up @@ -65,4 +65,4 @@ class IMonoClassMember {
virtual MonoObject *get_attribute(GDMonoClass *p_attr_class) = 0;
};

#endif // GD_MONO_CLASS_MEMBER_H
#endif // I_MONO_CLASS_MEMBER_H
2 changes: 1 addition & 1 deletion modules/upnp/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "core/error_macros.h"

#include "upnp.h"
#include "upnpdevice.h"
#include "upnp_device.h"

void register_upnp_types() {

Expand Down
2 changes: 1 addition & 1 deletion modules/upnp/upnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "core/reference.h"

#include "upnpdevice.h"
#include "upnp_device.h"

#include <miniupnpc/miniupnpc.h>

Expand Down
4 changes: 2 additions & 2 deletions modules/upnp/upnpdevice.cpp → modules/upnp/upnp_device.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* upnpdevice.cpp */
/* upnp_device.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#include "upnpdevice.h"
#include "upnp_device.h"

#include "upnp.h"

Expand Down
8 changes: 4 additions & 4 deletions modules/upnp/upnpdevice.h → modules/upnp/upnp_device.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* upnpdevice.h */
/* upnp_device.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,8 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef GODOT_UPNPDEVICE_H
#define GODOT_UPNPDEVICE_H
#ifndef GODOT_UPNP_DEVICE_H
#define GODOT_UPNP_DEVICE_H

#include "core/reference.h"

Expand Down Expand Up @@ -92,4 +92,4 @@ class UPNPDevice : public Reference {

VARIANT_ENUM_CAST(UPNPDevice::IGDStatus)

#endif // GODOT_UPNPDEVICE_H
#endif // GODOT_UPNP_DEVICE_H
2 changes: 1 addition & 1 deletion modules/websocket/websocket_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define WEBSOCKET_CLIENT_H

#include "core/error_list.h"
#include "websocket_multiplayer.h"
#include "websocket_multiplayer_peer.h"
#include "websocket_peer.h"

class WebSocketClient : public WebSocketMultiplayerPeer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* websocket_multiplayer.cpp */
/* websocket_multiplayer_peer.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,7 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#include "websocket_multiplayer.h"
#include "websocket_multiplayer_peer.h"

#include "core/os/os.h"

WebSocketMultiplayerPeer::WebSocketMultiplayerPeer() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* websocket_multiplayer.h */
/* websocket_multiplayer_peer.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down
2 changes: 1 addition & 1 deletion modules/websocket/websocket_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define WEBSOCKET_H

#include "core/reference.h"
#include "websocket_multiplayer.h"
#include "websocket_multiplayer_peer.h"
#include "websocket_peer.h"

class WebSocketServer : public WebSocketMultiplayerPeer {
Expand Down

0 comments on commit fe7e11e

Please sign in to comment.