Modernization + AZStd::function compare fix. (#3680)
* Modernization + small fix. Modernize ( `bool`/`override`/other) code in AzCore, AzFramework, AzQtComponents, AzToolsFramework, etc. Replaced a `bind` or two, use `using` in a few places as well. Fix nullptr comparison of AZStd::function. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Apply review-based changes Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -139,7 +139,7 @@ namespace AzToolsFramework
|
||||
AZ_PROFILE_SCOPE(AzToolsFramework, "Internal::DeleteEntities:UndoCaptureAndPurgeEntities");
|
||||
for (const auto& entityId : entityIds)
|
||||
{
|
||||
AZ::Entity* entity = NULL;
|
||||
AZ::Entity* entity = nullptr;
|
||||
EBUS_EVENT_RESULT(entity, AZ::ComponentApplicationBus, FindEntity, entityId);
|
||||
|
||||
if (entity)
|
||||
@@ -1237,7 +1237,7 @@ namespace AzToolsFramework
|
||||
|
||||
void ToolsApplication::RequestEditForFile(const char* assetPath, RequestEditResultCallback resultCallback)
|
||||
{
|
||||
AZ_Error("RequestEdit", resultCallback != 0, "User result callback is required.");
|
||||
AZ_Error("RequestEdit", resultCallback != nullptr, "User result callback is required.");
|
||||
|
||||
AZ::IO::FileIOBase* fileIO = AZ::IO::FileIOBase::GetInstance();
|
||||
if (fileIO && !fileIO->IsReadOnly(assetPath))
|
||||
|
||||
Reference in New Issue
Block a user