Skip to content

Commit

Permalink
fix: some include cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Nov 17, 2024
1 parent c176050 commit d12561c
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void AFINSizeablePanel::EndPlay(const EEndPlayReason::Type endPlayReason) {

int32 AFINSizeablePanel::GetDismantleRefundReturnsMultiplier() const {
//return FMath::Abs(PanelWidth) * FMath::Abs(PanelHeight);
return FGenericPlatformMath::Max((FMath::Abs(PanelWidth) * FMath::Abs(PanelHeight)) / 10, 1);
return FMath::Max((FMath::Abs(PanelWidth) * FMath::Abs(PanelHeight)) / 10, 1);
}

bool AFINSizeablePanel::ShouldSave_Implementation() const {
Expand Down
3 changes: 1 addition & 2 deletions Source/FicsItNetworks/Private/UI/FINLuaSyntaxHighlighter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "FindLast.h"
#include "FINLuaSyntax.h"
#include "FINLuaSyntax.h"
#include "FINLuaCodeEditor.h"
#include "Framework/Text/IRun.h"
#include "Framework/Text/TextLayout.h"
Expand Down
5 changes: 1 addition & 4 deletions Source/FicsItNetworksLua/Private/FINLua/API/LuaEventAPI.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include "LuaEventAPI.h"

#include <csignal>
#include <lstate.h>

#include "FicsItNetworksComputer.h"
#include "FicsItNetworksLuaModule.h"
#include "FicsItReflection.h"
Expand Down Expand Up @@ -266,7 +263,7 @@ namespace FINLua {
TArray<FFIRTrace> Listening = eventSystem.Listening();
int i = 0;
lua_newtable(L);
for (const FFIRTrace Obj : Listening) {
for (const FFIRTrace& Obj : Listening) {
luaFIN_pushObject(L, Obj);
lua_seti(L, -2, ++i);
}
Expand Down
2 changes: 0 additions & 2 deletions Source/FicsItNetworksLua/Private/FINLua/FINLuaRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "FicsItNetworksLuaModule.h"
#include "FINLuaModule.h"
#include "FINLuaRuntimePersistence.h"
#include "OnlineErrorDefinitions.h"
#include "ScopeExit.h"
#include "Union.h"

void luaWarnF(void* ud, const char* msg, int tocont) {
Expand Down
1 change: 0 additions & 1 deletion Source/FicsItNetworksLua/Private/FINLua/LuaMiscModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "FINLuaThreadedRuntime.h"
#include "FINNetworkUtils.h"
#include "LuaFileSystemAPI.h"
#include "LuaObject.h"
#include "LuaPersistence.h"

namespace FINLua {
Expand Down
3 changes: 0 additions & 3 deletions Source/FicsItNetworksLua/Private/FINLuaRCO.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#include "FINLuaRCO.h"

#include "FGInventoryComponent.h"
#include "FGPlayerController.h"
#include "FINComputerEEPROMDesc.h"
#include "FINComputerRCO.h"
#include "FINItemStateEEPROMText.h"
#include "Engine/World.h"
#include "Net/UnrealNetwork.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/FicsItNetworksLua/Private/FINLuaReflecion.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "FicsItReflection.h"
#include "FINEventFilter.h"
#include "FicsItReflection/Public/Reflection/Source/FIRSourceStaticMacros.h"
#include "Reflection/Source/FIRSourceStaticMacros.h"

BeginStruct(FFINEventFilterExpression, "EventFilter", "Event Filter", "This struct contains filter settings so you can evaluate if a sent signal matches the filter or not.")
BeginFuncVA(matches, "Matches", "Returns true if the given signal data matches this event filter.") {
Expand Down
1 change: 0 additions & 1 deletion Source/FicsItNetworksLua/Public/FINLua/LuaUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "FILLogScope.h"
#include "FINLua.h"
#include "FIRTypes.h"
#include "Serialization/CompactBinaryWriter.h"

class UFIRProperty;
class UFIRStruct;
Expand Down
1 change: 0 additions & 1 deletion Source/FicsItNetworksLua/Public/FINLuaProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "CoreMinimal.h"
#include "AsyncWork.h"
#include "FINLuaReferenceCollector.h"
#include "FINLuaRuntime.h"
#include "FINLuaRuntimePersistence.h"
#include "FINLuaThreadedRuntime.h"
#include "Future.h"
Expand Down

0 comments on commit d12561c

Please sign in to comment.