Optimize text formatting functions instantiation to favor manually called String::Format
This commit is contained in:
@@ -314,7 +314,7 @@ bool AndroidPlatformTools::OnPostProcess(CookingData& data)
|
||||
const int32 result = Platform::CreateProcess(procSettings);
|
||||
if (result != 0)
|
||||
{
|
||||
data.Error(TEXT("Failed to build Gradle project into package (result code: {0}). See log for more info."), result);
|
||||
data.Error(String::Format(TEXT("Failed to build Gradle project into package (result code: {0}). See log for more info."), result));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ bool GDKPlatformTools::OnDeployBinaries(CookingData& data)
|
||||
files.Add(binPath / executableFilename);
|
||||
if (!FileSystem::FileExists(files[0]))
|
||||
{
|
||||
data.Error(TEXT("Missing executable file ({0})."), files[0]);
|
||||
data.Error(String::Format(TEXT("Missing executable file ({0})."), files[0]));
|
||||
return true;
|
||||
}
|
||||
FileSystem::DirectoryGetFiles(files, binPath, TEXT("*.dll"), DirectorySearchOption::TopDirectoryOnly);
|
||||
@@ -60,7 +60,7 @@ bool GDKPlatformTools::OnDeployBinaries(CookingData& data)
|
||||
{
|
||||
if (FileSystem::CopyFile(data.NativeCodeOutputPath / StringUtils::GetFileName(files[i]), files[i]))
|
||||
{
|
||||
data.Error(TEXT("Failed to setup output directory (file {0})."), files[i]);
|
||||
data.Error(String::Format(TEXT("Failed to setup output directory (file {0})."), files[i]));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ bool UWPPlatformTools::OnDeployBinaries(CookingData& data)
|
||||
{
|
||||
if (!FileSystem::FileExists(files[i]))
|
||||
{
|
||||
data.Error(TEXT("Missing source file {0}."), files[i]);
|
||||
data.Error(String::Format(TEXT("Missing source file {0}."), files[i]));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user