mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Port member initialization from constructor to declaration (C++11)
Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
This commit is contained in:
@@ -585,11 +585,6 @@ void AStar::_bind_methods() {
|
||||
BIND_VMETHOD(MethodInfo(Variant::FLOAT, "_compute_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
|
||||
}
|
||||
|
||||
AStar::AStar() {
|
||||
last_free_id = 0;
|
||||
pass = 1;
|
||||
}
|
||||
|
||||
AStar::~AStar() {
|
||||
clear();
|
||||
}
|
||||
@@ -910,9 +905,3 @@ void AStar2D::_bind_methods() {
|
||||
BIND_VMETHOD(MethodInfo(Variant::FLOAT, "_estimate_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
|
||||
BIND_VMETHOD(MethodInfo(Variant::FLOAT, "_compute_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
|
||||
}
|
||||
|
||||
AStar2D::AStar2D() {
|
||||
}
|
||||
|
||||
AStar2D::~AStar2D() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user