[mobile-settings-crash-fix] removed dep on FileUtil in ProjectSettingsToolWindow.cpp and optimize return in GetPlatformResource

Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
AMZN-ScottR
2021-07-13 17:46:35 -07:00
parent 7937ece773
commit 201a387c7e
@@ -26,7 +26,6 @@
#include <AzToolsFramework/UI/PropertyEditor/PropertyManagerComponent.h>
#include <AzToolsFramework/UI/PropertyEditor/ReflectedPropertyEditor.hxx>
#include <AzToolsFramework/UI/UICore/WidgetHelpers.h>
#include <Util/FileUtil.h>
#include <QMessageBox>
#include <QCloseEvent>
@@ -672,9 +671,9 @@ namespace ProjectSettingsTool
AZ::IO::FixedMaxPath projectPlist{ m_projectRoot };
projectPlist /= relPath;
if (CFileUtil::FileExists(projectPlist.c_str()))
if (AZ::IO::SystemFile::Exists(projectPlist.c_str()))
{
return projectPlist.LexicallyNormal().c_str();
return projectPlist.LexicallyNormal().String();
}
}
}