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:
Artur K
2021-09-02 21:55:09 +02:00
committed by GitHub
parent b3c8b0f5f3
commit 567c0ae24d
150 changed files with 865 additions and 847 deletions
+7 -7
View File
@@ -184,7 +184,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(Vector3SumJob, ThreadPoolAllocator, 0)
Vector3SumJob(const Vector3* array, unsigned int size, Vector3* result, JobContext* context = NULL)
Vector3SumJob(const Vector3* array, unsigned int size, Vector3* result, JobContext* context = nullptr)
: Job(true, context)
, m_array(array)
, m_size(size)
@@ -284,7 +284,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(FibonacciJobJoin, ThreadPoolAllocator, 0)
FibonacciJobJoin(int* result, JobContext* context = NULL)
FibonacciJobJoin(int* result, JobContext* context = nullptr)
: Job(true, context)
, m_result(result)
{
@@ -304,7 +304,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(FibonacciJobFork, ThreadPoolAllocator, 0)
FibonacciJobFork(int n, int* result, JobContext* context = NULL)
FibonacciJobFork(int n, int* result, JobContext* context = nullptr)
: Job(true, context)
, m_n(n)
, m_result(result)
@@ -374,7 +374,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(FibonacciJob2, ThreadPoolAllocator, 0)
FibonacciJob2(int n, int* result, JobContext* context = NULL)
FibonacciJob2(int n, int* result, JobContext* context = nullptr)
: Job(true, context)
, m_n(n)
, m_result(result)
@@ -441,7 +441,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(MergeSortJobJoin, ThreadPoolAllocator, 0)
MergeSortJobJoin(int* array, int* tempArray, int size1, int size2, JobContext* context = NULL)
MergeSortJobJoin(int* array, int* tempArray, int size1, int size2, JobContext* context = nullptr)
: Job(true, context)
, m_array(array)
, m_tempArray(tempArray)
@@ -496,7 +496,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(MergeSortJobFork, ThreadPoolAllocator, 0)
MergeSortJobFork(int* array, int* tempArray, int size, JobContext* context = NULL)
MergeSortJobFork(int* array, int* tempArray, int size, JobContext* context = nullptr)
: Job(true, context)
, m_array(array)
, m_tempArray(tempArray)
@@ -585,7 +585,7 @@ namespace UnitTest
public:
AZ_CLASS_ALLOCATOR(QuickSortJob, ThreadPoolAllocator, 0)
QuickSortJob(int* array, int left, int right, JobContext* context = NULL)
QuickSortJob(int* array, int left, int right, JobContext* context = nullptr)
: Job(true, context)
, m_array(array)
, m_left(left)