Skip to content

Commit f5ee795

Browse files
committed
chore: Removed 'static' again from find_mod_by_name
Apparently, explicit specializations aren't allowed to be explicitly static.
1 parent 2973f3f commit f5ee795

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UE4SS/include/UE4SSProgram.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,26 +318,26 @@ namespace RC
318318
std::abort();
319319
};
320320
template <>
321-
RC_UE4SS_API static auto find_mod_by_name<LuaMod>(StringViewType mod_name, IsInstalled is_installed, IsStarted is_started) -> LuaMod*
321+
RC_UE4SS_API auto find_mod_by_name<LuaMod>(StringViewType mod_name, IsInstalled is_installed, IsStarted is_started) -> LuaMod*
322322
{
323323
return static_cast<LuaMod*>(find_mod_by_name_internal(mod_name, is_installed, is_started, [](auto elem) -> bool {
324324
return dynamic_cast<LuaMod*>(elem);
325325
}));
326326
}
327327
template <>
328-
RC_UE4SS_API static auto find_mod_by_name<CppMod>(StringViewType mod_name, IsInstalled is_installed, IsStarted is_started) -> CppMod*
328+
RC_UE4SS_API auto find_mod_by_name<CppMod>(StringViewType mod_name, IsInstalled is_installed, IsStarted is_started) -> CppMod*
329329
{
330330
return static_cast<CppMod*>(find_mod_by_name_internal(mod_name, is_installed, is_started, [](auto elem) -> bool {
331331
return dynamic_cast<CppMod*>(elem);
332332
}));
333333
}
334334
template <>
335-
RC_UE4SS_API static auto find_mod_by_name<LuaMod>(std::string_view mod_name, IsInstalled is_installed, IsStarted is_started) -> LuaMod*
335+
RC_UE4SS_API auto find_mod_by_name<LuaMod>(std::string_view mod_name, IsInstalled is_installed, IsStarted is_started) -> LuaMod*
336336
{
337337
return find_mod_by_name<LuaMod>(ensure_str(mod_name), is_installed, is_started);
338338
}
339339
template <>
340-
RC_UE4SS_API static auto find_mod_by_name<CppMod>(std::string_view mod_name, IsInstalled is_installed, IsStarted is_started) -> CppMod*
340+
RC_UE4SS_API auto find_mod_by_name<CppMod>(std::string_view mod_name, IsInstalled is_installed, IsStarted is_started) -> CppMod*
341341
{
342342
return find_mod_by_name<CppMod>(ensure_str(mod_name), is_installed, is_started);
343343
}

0 commit comments

Comments
 (0)