Skip to content

Commit

Permalink
Fixed two errors when compiling with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Oct 18, 2023
1 parent 3ab7bef commit 892eefe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UE4SS/include/GUI/LiveView/Filter/SearchFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace RC::GUI::Filter
};

template <typename T>
auto eval_pre_search_filters(Types<T>&, UObject* object) -> bool
auto eval_pre_search_filters(T&, UObject* object) -> bool
{
if constexpr (CanPreEval<T>)
{
Expand Down Expand Up @@ -76,7 +76,7 @@ namespace RC::GUI::Filter
}

template <typename T>
auto eval_post_search_filters(Types<T>&, UObject* object) -> bool
auto eval_post_search_filters(T&, UObject* object) -> bool
{
if constexpr (CanPostEval<T>)
{
Expand Down
3 changes: 2 additions & 1 deletion UE4SS/src/GUI/LiveView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,8 @@ namespace RC::GUI
FName new_key = FName(new_name, FNAME_Add);
int64 value = names[index].Value;

uenum->InsertIntoNames(TPair{new_key, value}, index, true);
// NOTE: Explicitly giving specifying template params for TPair because Clang can't handle TPair being a templated using statement.
uenum->InsertIntoNames(TPair<decltype(new_key), decltype(value)>{new_key, value}, index, true);

if (uenum->GetEnumNames()[index].Key.ToString() != new_name)
{
Expand Down

0 comments on commit 892eefe

Please sign in to comment.