- Fix some unnecessary string copies when calling FPaths::FileExists

#jira FORT-392314
[at]Michael.Kirzinger [at]Marc.Audy [at]Rob.Cannaday [at]Sam.Zamani

#ROBOMERGE-SOURCE: CL 16923987 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16924003 by chris varnsverry in ue5-release-engine-test branch]
This commit is contained in:
chris varnsverry
2021-07-22 11:11:51 -04:00
parent a44fbef833
commit ce4dd6767c
23 changed files with 55 additions and 51 deletions

View File

@@ -131,7 +131,7 @@ private:
OutStdErr = &DefaultError;
}
if (FPaths::FileExists(*ADBPath))
if (FPaths::FileExists(ADBPath))
{
FPlatformProcess::ExecProcess(*ADBPath, *CommandLine, &ReturnCode, OutStdOut, OutStdErr);
@@ -688,7 +688,7 @@ public:
ADBPath = FPaths::Combine(*AndroidDirectory, SDKRelativeExePath);
// if it doesn't exist then just clear the path as we might set it later
if (!FPaths::FileExists(*ADBPath))
if (!FPaths::FileExists(ADBPath))
{
ADBPath.Empty();
}