Skip to content

Commit

Permalink
Fix bug in IsValidBranchName() that didn't work in Development build …
Browse files Browse the repository at this point in the history
…(but did work in Debug)

Using a pointer to a TCHAR var in a function taking a string
  • Loading branch information
SRombautsU committed Dec 4, 2023
1 parent 845aa53 commit 25f0a23
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ void SPlasticSourceControlCreateBranch::Construct(const FArguments& InArgs)
.OnClicked(this, &SPlasticSourceControlCreateBranch::CreateClicked)
]
+SHorizontalBox::Slot()
.AutoWidth()
[
.AutoWidth()
[
SNew(SButton)
.HAlign(HAlign_Center)
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 1
Expand Down Expand Up @@ -174,7 +174,8 @@ bool SPlasticSourceControlCreateBranch::IsNewBranchNameValid() const

for (TCHAR Char : NewBranchName)
{
if (BranchNameInvalidChars.Contains(&Char, ESearchCase::CaseSensitive))
int32 Index;
if (BranchNameInvalidChars.FindChar(Char, Index))
{
return false;
}
Expand Down

0 comments on commit 25f0a23

Please sign in to comment.