Skip to content

Commit

Permalink
Merge pull request #25821 from akien-mga/sync-class-and-filenames
Browse files Browse the repository at this point in the history
Ensure classes match their header filename
  • Loading branch information
akien-mga committed Feb 13, 2019
2 parents a18ceb6 + fe7e11e commit 55ca2a7
Show file tree
Hide file tree
Showing 178 changed files with 495 additions and 1,658 deletions.
195 changes: 0 additions & 195 deletions core/allocators.h

This file was deleted.

2 changes: 1 addition & 1 deletion core/core_string_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef CORE_STRING_NAMES_H
#define CORE_STRING_NAMES_H

#include "core/string_db.h"
#include "core/string_name.h"

class CoreStringNames {

Expand Down
2 changes: 1 addition & 1 deletion core/global_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef GLOBAL_CONSTANTS_H
#define GLOBAL_CONSTANTS_H

#include "core/string_db.h"
#include "core/string_name.h"

class GlobalConstants {
public:
Expand Down
2 changes: 1 addition & 1 deletion core/hashfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "core/math/math_defs.h"
#include "core/math/math_funcs.h"
#include "core/node_path.h"
#include "core/string_db.h"
#include "core/string_name.h"
#include "core/typedefs.h"
#include "core/ustring.h"

Expand Down
2 changes: 1 addition & 1 deletion core/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#define IMAGE_H

#include "core/color.h"
#include "core/dvector.h"
#include "core/math/rect2.h"
#include "core/pool_vector.h"
#include "core/resource.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion core/io/file_access_buffered.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#ifndef FILE_ACCESS_BUFFERED_H
#define FILE_ACCESS_BUFFERED_H

#include "core/dvector.h"
#include "core/os/file_access.h"
#include "core/pool_vector.h"
#include "core/ustring.h"

class FileAccessBuffered : public FileAccess {
Expand Down
2 changes: 1 addition & 1 deletion core/io/file_access_buffered_fa.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FileAccessBufferedFA : public FileAccessBuffered {
cache.offset = p_offset;
cache.buffer.resize(p_size);

// on dvector
// on PoolVector
//PoolVector<uint8_t>::Write write = cache.buffer.write();
//f.get_buffer(write.ptrw(), p_size);

Expand Down
4 changes: 2 additions & 2 deletions core/io/resource_import.cpp → core/io/resource_importer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* resource_import.cpp */
/* resource_importer.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 "resource_import.h"
#include "resource_importer.h"

#include "core/os/os.h"
#include "core/variant_parser.h"
Expand Down
8 changes: 4 additions & 4 deletions core/io/resource_import.h → core/io/resource_importer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************/
/* resource_import.h */
/* resource_importer.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 RESOURCE_IMPORT_H
#define RESOURCE_IMPORT_H
#ifndef RESOURCE_IMPORTER_H
#define RESOURCE_IMPORTER_H

#include "core/io/resource_loader.h"

Expand Down Expand Up @@ -110,4 +110,4 @@ class ResourceImporter : public Reference {
virtual Error import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = NULL) = 0;
};

#endif // RESOURCE_IMPORT_H
#endif // RESOURCE_IMPORTER_H
2 changes: 1 addition & 1 deletion core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "resource_loader.h"

#include "core/io/resource_import.h"
#include "core/io/resource_importer.h"
#include "core/os/file_access.h"
#include "core/os/os.h"
#include "core/path_remap.h"
Expand Down
2 changes: 1 addition & 1 deletion core/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define GLOBALS_LIST_H

#include "core/os/memory.h"
#include "core/sort.h"
#include "core/sort_array.h"

/**
* Generic Templatized Linked List Implementation.
Expand Down
2 changes: 1 addition & 1 deletion core/math/bsp_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#ifndef BSP_TREE_H
#define BSP_TREE_H

#include "core/dvector.h"
#include "core/math/aabb.h"
#include "core/math/face3.h"
#include "core/math/plane.h"
#include "core/method_ptrcall.h"
#include "core/pool_vector.h"
#include "core/variant.h"
#include "core/vector.h"
/**
Expand Down
2 changes: 1 addition & 1 deletion core/math/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
#ifndef GEOMETRY_H
#define GEOMETRY_H

#include "core/dvector.h"
#include "core/math/face3.h"
#include "core/math/rect2.h"
#include "core/math/triangulate.h"
#include "core/math/vector3.h"
#include "core/object.h"
#include "core/pool_vector.h"
#include "core/print_string.h"
#include "core/vector.h"

Expand Down
2 changes: 1 addition & 1 deletion core/math/triangle_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "triangle_mesh.h"

#include "core/sort.h"
#include "core/sort_array.h"

int TriangleMesh::_create_bvh(BVH *p_bvh, BVH **p_bb, int p_from, int p_size, int p_depth, int &max_depth, int &max_alloc) {

Expand Down
2 changes: 1 addition & 1 deletion core/node_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef NODE_PATH_H
#define NODE_PATH_H

#include "core/string_db.h"
#include "core/string_name.h"
#include "core/ustring.h"

/**
Expand Down
Loading

0 comments on commit 55ca2a7

Please sign in to comment.