Legacy cleanup, part 2 (#3659)
* Legacy cleanup, part 2 There are still things that can be removed, those will be likely done in part three: `The Return of the Cleanup` :) Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Fix windows build Somehow there were some unfixed errors from enabled warnings? I'm unsure if I've pulled repo in unstable state, or those were somehow missed. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -93,7 +93,7 @@ namespace UnitTest
|
||||
static int FindDescendantCount(const AZ::Entity* entity)
|
||||
{
|
||||
LyShine::EntityArray children = entity->FindComponent<UiElementComponent>()->GetChildElements();
|
||||
int numDescendants = children.size();
|
||||
int numDescendants = static_cast<int>(children.size());
|
||||
for(const AZ::Entity* child : children)
|
||||
{
|
||||
numDescendants += FindDescendantCount(child);
|
||||
@@ -105,7 +105,7 @@ namespace UnitTest
|
||||
static int FindCanvasElementCount(UiCanvasComponent* uiCanvasComponent)
|
||||
{
|
||||
const LyShine::EntityArray childEntities = uiCanvasComponent->GetChildElements();
|
||||
int numCanvasElements = childEntities.size();
|
||||
int numCanvasElements = static_cast<int>(childEntities.size());
|
||||
for (const AZ::Entity* childEntity : childEntities)
|
||||
{
|
||||
numCanvasElements += FindDescendantCount(childEntity);
|
||||
|
||||
Reference in New Issue
Block a user