* @since_tizen 6.5
*/
static std::function<bool(const ISearchable *)> hasObject(
- const std::shared_ptr<UiSelector> selector);
+ const std::shared_ptr<UiSelector> &selector);
/**
* @brief Checks that there is an object that are satisfied with selector condition.
* @since_tizen 6.5
*/
static std::function<std::shared_ptr<UiObject>(const ISearchable *)>
- findObject(const std::shared_ptr<UiSelector> selector);
+ findObject(const std::shared_ptr<UiSelector> &selector);
/**
* @brief Checks the given object on checkable state.
* @since_tizen 7.0
*/
static std::function<std::vector<std::shared_ptr<UiObject>>(const ISearchable *)>
- findObjects(const std::shared_ptr<UiSelector> selector);
+ findObjects(const std::shared_ptr<UiSelector> &selector);
};
}
using namespace Aurum;
std::function<bool(const ISearchable *)> Until::hasObject(
- const std::shared_ptr<UiSelector> selector)
+ const std::shared_ptr<UiSelector> &selector)
{
return [=](const ISearchable *searchable) -> bool {
LOGI("hasObject search:%p", searchable);
}
std::function<std::shared_ptr<UiObject>(const ISearchable *)> Until::findObject(
- const std::shared_ptr<UiSelector> selector)
+ const std::shared_ptr<UiSelector> &selector)
{
return [=](const ISearchable *searchable) -> std::shared_ptr<UiObject> {
LOGI("findObject search:%p", searchable);
}
std::function<std::vector<std::shared_ptr<UiObject>>(const ISearchable *)> Until::findObjects(
- const std::shared_ptr<UiSelector> selector)
+ const std::shared_ptr<UiSelector> &selector)
{
return [=](const ISearchable *searchable) -> std::vector<std::shared_ptr<UiObject>> {
LOGI("findObjects search:%p", searchable);
::grpc::Status execute() override;
private:
- void traverse(::aurum::Element *root, std::shared_ptr<Node> node, int depth);
+ void traverse(::aurum::Element *root, const std::shared_ptr<Node> &node, int depth);
};
mObjMap = ObjectMapper::getInstance();
}
-void DumpObjectTreeCommand::traverse(::aurum::Element *root, std::shared_ptr<Node> node, int depth)
+void DumpObjectTreeCommand::traverse(::aurum::Element *root, const std::shared_ptr<Node> &node, int depth)
{
if (!node->mNode) return;
std::shared_ptr<UiObject> obj = node->mNode;