Browse Source

Modules: Ensure classes match their header filename

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`
Rémi Verschelde 6 years ago
parent
commit
fe7e11e008

+ 1 - 1
modules/mono/mono_gd/gd_mono_field.h

@@ -32,8 +32,8 @@
 #define GDMONOFIELD_H
 #define GDMONOFIELD_H
 
 
 #include "gd_mono.h"
 #include "gd_mono.h"
-#include "gd_mono_class_member.h"
 #include "gd_mono_header.h"
 #include "gd_mono_header.h"
+#include "i_mono_class_member.h"
 
 
 class GDMonoField : public IMonoClassMember {
 class GDMonoField : public IMonoClassMember {
 
 

+ 1 - 1
modules/mono/mono_gd/gd_mono_method.h

@@ -32,8 +32,8 @@
 #define GD_MONO_METHOD_H
 #define GD_MONO_METHOD_H
 
 
 #include "gd_mono.h"
 #include "gd_mono.h"
-#include "gd_mono_class_member.h"
 #include "gd_mono_header.h"
 #include "gd_mono_header.h"
+#include "i_mono_class_member.h"
 
 
 class GDMonoMethod : public IMonoClassMember {
 class GDMonoMethod : public IMonoClassMember {
 
 

+ 1 - 1
modules/mono/mono_gd/gd_mono_property.h

@@ -32,8 +32,8 @@
 #define GD_MONO_PROPERTY_H
 #define GD_MONO_PROPERTY_H
 
 
 #include "gd_mono.h"
 #include "gd_mono.h"
-#include "gd_mono_class_member.h"
 #include "gd_mono_header.h"
 #include "gd_mono_header.h"
+#include "i_mono_class_member.h"
 
 
 class GDMonoProperty : public IMonoClassMember {
 class GDMonoProperty : public IMonoClassMember {
 
 

+ 4 - 4
modules/mono/mono_gd/gd_mono_class_member.h → modules/mono/mono_gd/i_mono_class_member.h

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  gd_mono_class_member.h                                               */
+/*  i_mono_class_member.h                                                */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
@@ -28,8 +28,8 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* 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"
 #include "gd_mono_header.h"
 
 
@@ -65,4 +65,4 @@ public:
 	virtual MonoObject *get_attribute(GDMonoClass *p_attr_class) = 0;
 	virtual MonoObject *get_attribute(GDMonoClass *p_attr_class) = 0;
 };
 };
 
 
-#endif // GD_MONO_CLASS_MEMBER_H
+#endif // I_MONO_CLASS_MEMBER_H

+ 1 - 1
modules/upnp/register_types.cpp

@@ -33,7 +33,7 @@
 #include "core/error_macros.h"
 #include "core/error_macros.h"
 
 
 #include "upnp.h"
 #include "upnp.h"
-#include "upnpdevice.h"
+#include "upnp_device.h"
 
 
 void register_upnp_types() {
 void register_upnp_types() {
 
 

+ 1 - 1
modules/upnp/upnp.h

@@ -33,7 +33,7 @@
 
 
 #include "core/reference.h"
 #include "core/reference.h"
 
 
-#include "upnpdevice.h"
+#include "upnp_device.h"
 
 
 #include <miniupnpc/miniupnpc.h>
 #include <miniupnpc/miniupnpc.h>
 
 

+ 2 - 2
modules/upnp/upnpdevice.cpp → modules/upnp/upnp_device.cpp

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  upnpdevice.cpp                                                       */
+/*  upnp_device.cpp                                                      */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
@@ -28,7 +28,7 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
 
 
-#include "upnpdevice.h"
+#include "upnp_device.h"
 
 
 #include "upnp.h"
 #include "upnp.h"
 
 

+ 4 - 4
modules/upnp/upnpdevice.h → modules/upnp/upnp_device.h

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  upnpdevice.h                                                         */
+/*  upnp_device.h                                                        */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
@@ -28,8 +28,8 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* 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"
 #include "core/reference.h"
 
 
@@ -92,4 +92,4 @@ private:
 
 
 VARIANT_ENUM_CAST(UPNPDevice::IGDStatus)
 VARIANT_ENUM_CAST(UPNPDevice::IGDStatus)
 
 
-#endif // GODOT_UPNPDEVICE_H
+#endif // GODOT_UPNP_DEVICE_H

+ 1 - 1
modules/websocket/websocket_client.h

@@ -32,7 +32,7 @@
 #define WEBSOCKET_CLIENT_H
 #define WEBSOCKET_CLIENT_H
 
 
 #include "core/error_list.h"
 #include "core/error_list.h"
-#include "websocket_multiplayer.h"
+#include "websocket_multiplayer_peer.h"
 #include "websocket_peer.h"
 #include "websocket_peer.h"
 
 
 class WebSocketClient : public WebSocketMultiplayerPeer {
 class WebSocketClient : public WebSocketMultiplayerPeer {

+ 3 - 2
modules/websocket/websocket_multiplayer.cpp → modules/websocket/websocket_multiplayer_peer.cpp

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  websocket_multiplayer.cpp                                            */
+/*  websocket_multiplayer_peer.cpp                                       */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
@@ -28,7 +28,8 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
 
 
-#include "websocket_multiplayer.h"
+#include "websocket_multiplayer_peer.h"
+
 #include "core/os/os.h"
 #include "core/os/os.h"
 
 
 WebSocketMultiplayerPeer::WebSocketMultiplayerPeer() {
 WebSocketMultiplayerPeer::WebSocketMultiplayerPeer() {

+ 1 - 1
modules/websocket/websocket_multiplayer.h → modules/websocket/websocket_multiplayer_peer.h

@@ -1,5 +1,5 @@
 /*************************************************************************/
 /*************************************************************************/
-/*  websocket_multiplayer.h                                              */
+/*  websocket_multiplayer_peer.h                                         */
 /*************************************************************************/
 /*************************************************************************/
 /*                       This file is part of:                           */
 /*                       This file is part of:                           */
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */

+ 1 - 1
modules/websocket/websocket_server.h

@@ -32,7 +32,7 @@
 #define WEBSOCKET_H
 #define WEBSOCKET_H
 
 
 #include "core/reference.h"
 #include "core/reference.h"
-#include "websocket_multiplayer.h"
+#include "websocket_multiplayer_peer.h"
 #include "websocket_peer.h"
 #include "websocket_peer.h"
 
 
 class WebSocketServer : public WebSocketMultiplayerPeer {
 class WebSocketServer : public WebSocketMultiplayerPeer {