X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fbuilder%2Ftree-node.h;h=6246b16703b698013f37950b0cfb1d947f9c113b;hb=48000ec3ab1ca2d1f8001d192112e32357bb1dfc;hp=e7e511e7c29f995df8f71fd693a6e2d6818a3c7e;hpb=5359a575636e678baf178dab5209b587be1a7551;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/builder/tree-node.h b/dali-toolkit/devel-api/builder/tree-node.h index e7e511e..6246b16 100644 --- a/dali-toolkit/devel-api/builder/tree-node.h +++ b/dali-toolkit/devel-api/builder/tree-node.h @@ -130,7 +130,7 @@ public: * @param childName The name of the child to find * @return the number of children in the found child */ - size_t Count(const std::string& childName) const; + size_t Count(std::string_view childName) const; /* * Get the nodes name @@ -184,21 +184,21 @@ public: * @param name The name of the child. * @return The child if found, else NULL */ - const TreeNode* GetChild(const std::string& name) const; + const TreeNode* GetChild(std::string_view name) const; /* * Gets a child of the node (using case insensitive matching) * @param name The name of the child in lower case * @return The child if found, else NULL */ - const TreeNode* GetChildIgnoreCase(const std::string& name) const; + const TreeNode* GetChildIgnoreCase(std::string_view name) const; /* * Recursively search for a child of the node * @param name The name of the child * @return The child if found, else NULL */ - const TreeNode* Find(const std::string& name) const; + const TreeNode* Find(std::string_view name) const; private: friend class Internal::TreeNodeManipulator;