Skip to content

Commit

Permalink
Merge pull request #115 from Sixze/compilation-errors-fix
Browse files Browse the repository at this point in the history
Fix non-unity and UE 5.2 compilation errors
  • Loading branch information
mastercoms authored Jun 13, 2023
2 parents 0c5dc5d + 3321a45 commit 0e4c378
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions Source/GitSourceControl/Private/GitMessageLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#pragma once

#include "ISourceControlModule.h"
#include "Internationalization/Text.h"
#include "Logging/MessageLog.h"
#include "Logging/TokenizedMessage.h"
Expand Down
2 changes: 2 additions & 0 deletions Source/GitSourceControl/Private/GitSourceControlMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include "ToolMenuMisc.h"
#endif

#include "UObject/Linker.h"

static const FName GitSourceControlMenuTabName(TEXT("GitSourceControlMenu"));

#define LOCTEXT_NAMESPACE "GitSourceControl"
Expand Down
2 changes: 2 additions & 0 deletions Source/GitSourceControl/Private/GitSourceControlModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "ISourceControlModule.h"
#include "SourceControlHelpers.h"
#include "Framework/Commands/UIAction.h"
#include "Framework/MultiBox/MultiBoxExtender.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"

#define LOCTEXT_NAMESPACE "GitSourceControl"

Expand Down
1 change: 1 addition & 0 deletions Source/GitSourceControl/Private/GitSourceControlModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "GitSourceControlProvider.h"

struct FAssetData;
class FExtender;

/**
Expand Down
6 changes: 3 additions & 3 deletions Source/GitSourceControl/Private/GitSourceControlState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "GitSourceControlState.h"

#if ENGINE_MAJOR_VERSION >= 5
include "Textures/SlateIcon.h"
#include "Textures/SlateIcon.h"
#if ENGINE_MINOR_VERSION >= 2
#include "RevisionControlStyle/RevisionControlStyle.h"
#endif
Expand Down Expand Up @@ -97,13 +97,13 @@ FSlateIcon FGitSourceControlState::GetIcon() const
#endif
case EGitState::LockedOther:
#if ENGINE_MINOR_VERSION >= 2
return GET_ICON_RETURN("RevisionControl.CheckedOutByOtherUser", NAME_None, "RevisionControl.CheckedOutByOtherUserBadge");
return GET_ICON_RETURN("RevisionControl.CheckedOutByOtherUser");
#else
return GET_ICON_RETURN("Perforce.CheckedOutByOtherUser");
#endif
case EGitState::NotLatest:
#if ENGINE_MINOR_VERSION >= 2
return GET_ICON_RETURN("RevisionControl.ModifiedOtherBranch", NAME_None, "RevisionControl.ModifiedBadge");
return GET_ICON_RETURN("RevisionControl.ModifiedOtherBranch");
#else
return GET_ICON_RETURN("Perforce.ModifiedOtherBranch");
#endif
Expand Down
1 change: 1 addition & 0 deletions Source/GitSourceControl/Private/GitSourceControlUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "Misc/MessageDialog.h"

#include "Async/Async.h"
#include "UObject/Linker.h"

#ifndef GIT_DEBUG_STATUS
#define GIT_DEBUG_STATUS 0
Expand Down
1 change: 1 addition & 0 deletions Source/GitSourceControl/Private/GitSourceControlUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include "GitSourceControlRevision.h"
#include "GitSourceControlState.h"

class FGitSourceControlState;

Expand Down

0 comments on commit 0e4c378

Please sign in to comment.