No longer using std::unary_function<>. 50/240450/1
authorGyörgy Straub <g.straub@partner.samsung.com>
Thu, 6 Aug 2020 09:14:45 +0000 (10:14 +0100)
committerGyörgy Straub <g.straub@partner.samsung.com>
Thu, 6 Aug 2020 09:18:30 +0000 (10:18 +0100)
It is removed as of C++17.

Change-Id: I1fa47528de13bb9d541cbb3b6b48addfb0fd5e79
Signed-off-by: György Straub <g.straub@partner.samsung.com>
dali-toolkit/internal/builder/tree-node-manipulator.h

index 267c69e..eaea13e 100644 (file)
@@ -198,14 +198,14 @@ private:
 /*
  * Collect nodes
  */
 /*
  * Collect nodes
  */
-struct CollectNodes : public std::unary_function<TreeNode*, void>
+struct CollectNodes
 {
   CollectNodes() {};
 
   /*
    * Call operator to add nodes to the list
    */
 {
   CollectNodes() {};
 
   /*
    * Call operator to add nodes to the list
    */
-  result_type operator()(argument_type& n)
+  void operator()(TreeNode*& n)
   {
     DALI_ASSERT_DEBUG(n && "Operation on NULL JSON node");
     nodes.push_back(n);
   {
     DALI_ASSERT_DEBUG(n && "Operation on NULL JSON node");
     nodes.push_back(n);