Skip to content

Commit 1007ba4

Browse files
committed
clang-format (only for changed lines)
1 parent 4118d19 commit 1007ba4

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

UE4SS/src/LuaType/LuaCustomProperty.cpp

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace RC::LuaType
6868

6969
if (class_matches && !callable(property_item))
7070
{
71-
return false;
71+
return false;
7272
}
7373
}
7474

@@ -79,16 +79,14 @@ namespace RC::LuaType
7979
{
8080
Unreal::FProperty* custom_property_found{};
8181

82-
for_each(base, [&](LuaCustomProperty const& property)
83-
{
84-
bool match = property.m_name == property_name;
85-
if (match)
86-
{
87-
custom_property_found = property.m_property.get();
88-
}
89-
return !match;
90-
}
91-
);
82+
for_each(base, [&](LuaCustomProperty const& property) {
83+
bool match = property.m_name == property_name;
84+
if (match)
85+
{
86+
custom_property_found = property.m_property.get();
87+
}
88+
return !match;
89+
});
9290

9391
return custom_property_found;
9492
}

UE4SS/src/LuaType/LuaUObject.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ namespace RC::LuaType
549549
// For lua_rawget, we need the actual stack position of the table
550550
// If table_index is positive, it stays the same even after pushing the key
551551
// If it's negative, we need to adjust for the key we just pushed
552-
552+
553553
// Adjust index for negative values after pushing key
554554
int adjusted_index = table_index;
555555
if (table_index < 0)
@@ -601,7 +601,8 @@ namespace RC::LuaType
601601
return true;
602602
});
603603

604-
for (Unreal::FProperty* field : Unreal::TFieldRange<Unreal::FProperty>(script_struct, Unreal::EFieldIterationFlags::IncludeSuper | Unreal::EFieldIterationFlags::IncludeDeprecated)) {
604+
for (Unreal::FProperty* field : Unreal::TFieldRange<Unreal::FProperty>(script_struct, Unreal::EFieldIterationFlags::IncludeSuper | Unreal::EFieldIterationFlags::IncludeDeprecated))
605+
{
605606
handle_property(field, to_utf8_string(field->GetName()));
606607
}
607608
}
@@ -628,12 +629,9 @@ namespace RC::LuaType
628629
return;
629630
}
630631

631-
LuaMadeSimple::Lua::Table lua_table = create_new_table
632-
? lua.prepare_new_table()
633-
: lua.get_table();
632+
LuaMadeSimple::Lua::Table lua_table = create_new_table ? lua.prepare_new_table() : lua.get_table();
634633

635-
auto handle_property = [&](Unreal::FProperty* field, const std::string& field_name)
636-
{
634+
auto handle_property = [&](Unreal::FProperty* field, const std::string& field_name) {
637635
Unreal::FName field_type_fname = field->GetClass().GetFName();
638636
int32_t name_comparison_index = field_type_fname.GetComparisonIndex();
639637

0 commit comments

Comments
 (0)