Fixed wrong return type of rarely used ExportTextPathToObjectPath() overload

#fyi JeanMichel.Dignard
#jira UE-90736
#rb none

[CL 12230876 by Johan Torp in 4.25 branch]
This commit is contained in:
Johan Torp
2020-03-17 04:08:05 -04:00
parent 524355c5bc
commit a2393b024d
2 changed files with 3 additions and 3 deletions
@@ -1505,9 +1505,9 @@ FString FPackageName::ExportTextPathToObjectPath(const FString& InExportTextPath
return InExportTextPath;
}
const TCHAR* FPackageName::ExportTextPathToObjectPath(const TCHAR* InExportTextPath)
FString FPackageName::ExportTextPathToObjectPath(const TCHAR* InExportTextPath)
{
return ExportTextPathToObjectPath(FStringView(InExportTextPath)).GetData();
return ExportTextPathToObjectPath(FString(InExportTextPath));
}
FString FPackageName::ObjectPathToPackageName(const FString& InObjectPath)
@@ -446,7 +446,7 @@ public:
*/
static FStringView ExportTextPathToObjectPath(FStringView InExportTextPath);
static FString ExportTextPathToObjectPath(const FString& InExportTextPath);
static const TCHAR* ExportTextPathToObjectPath(const TCHAR* InExportTextPath);
static FString ExportTextPathToObjectPath(const TCHAR* InExportTextPath);
/**
* Returns the name of the package referred to by the specified object path