libaurum: modify a method signature to receive earlyreturn param
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 24 Sep 2020 09:46:32 +0000 (18:46 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Thu, 24 Sep 2020 09:50:05 +0000 (18:50 +0900)
to get the api support earlyreturn param  this patch modifies a signature of the api
Change-Id: I170937a359c80d88755b4cc7f93e3bb7df49c12c

libaurum/inc/Comparer.h
libaurum/src/Comparer.cc

index f6fc9dd..f6fce85 100644 (file)
@@ -45,7 +45,7 @@ public:
      */
     static std::vector<std::shared_ptr<AccessibleNode>> findObjects(
         const std::shared_ptr<UiDevice> device, const std::shared_ptr<UiSelector> selector,
-        const std::shared_ptr<AccessibleNode> root);
+        const std::shared_ptr<AccessibleNode> root, bool earlyReturn = false);
 
 private:
     /**
index f8abbd9..0a6adef 100644 (file)
@@ -23,6 +23,7 @@ std::shared_ptr<AccessibleNode> Comparer::findObject(const std::shared_ptr<UiDev
 
 std::vector<std::shared_ptr<AccessibleNode>> Comparer::findObjects(const std::shared_ptr<UiDevice> device,
                                                     const std::shared_ptr<UiSelector> selector,
+                                                    const std::shared_ptr<AccessibleNode> root, bool earlyReturn)
                                                     const std::shared_ptr<AccessibleNode> root)
 {
     Comparer comparer(device, selector, false);