/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/public-api/math/radian.h>
#include <dali/public-api/math/vector2.h>
+#include <dali/internal/common/const-string.h>
#include <dali/internal/event/actors/actor-impl.h>
#include <dali/internal/event/actors/layer-impl.h>
#include <dali/internal/event/animation/constraint-impl.h>
namespace Dali
{
-Actor::Actor()
-{
-}
+Actor::Actor() = default;
Actor Actor::New()
{
return Actor(dynamic_cast<Dali::Internal::Actor*>(handle.GetObjectPtr()));
}
-Actor::~Actor()
-{
-}
+Actor::~Actor() = default;
Actor::Actor(const Actor& copy) = default;
Actor& Actor::operator=(const Actor& rhs) = default;
-Actor::Actor(Actor&& rhs) = default;
+Actor::Actor(Actor&& rhs) noexcept = default;
-Actor& Actor::operator=(Actor&& rhs) = default;
+Actor& Actor::operator=(Actor&& rhs) noexcept = default;
Layer Actor::GetLayer()
{
return Actor(child.Get());
}
-Actor Actor::FindChildByName(const std::string& actorName)
+Actor Actor::FindChildByName(std::string_view actorName)
{
- Internal::ActorPtr child = GetImplementation(*this).FindChildByName(actorName);
+ Internal::ActorPtr child = GetImplementation(*this).FindChildByName(Internal::ConstString(actorName));
return Actor(child.Get());
}