fix build failure
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 24 Mar 2020 11:51:09 +0000 (20:51 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Fri, 3 Apr 2020 00:33:21 +0000 (09:33 +0900)
Change-Id: Ia9f363e4f28ae267a676c6603b8d21f40e21a4cf

libaurum/inc/AccessibleUtils.h
libaurum/inc/UiDevice.h
libaurum/src/UiDevice.cc

index 0a053c7..23052f4 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <atspi/atspi.h>
 #include <gio/gio.h>
+#include <string.h>
 
 #include <memory>
 #include "config.h"
index 88417f7..183fbab 100644 (file)
@@ -59,7 +59,7 @@ public:
     static UiDevice *getInstance(DeviceType type);
 
 private:
-    const std::vector<std::unique_ptr<AccessibleNode>> getWindowRoot() const;
+    std::vector<std::unique_ptr<AccessibleNode>> getWindowRoot() const;
 
 private:
     UiDevice();
index fb65535..2c189ae 100644 (file)
@@ -29,11 +29,9 @@ UiDevice *UiDevice::getInstance(DeviceType type)
     return device;
 }
 
-const std::vector<std::unique_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
+std::vector<std::unique_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
 {
-    std::vector<std::unique_ptr<AccessibleNode>> root = AccessibleWatcher::getInstance()->getTopNode();
-    // root->print(0,6);
-    return root;
+    return AccessibleWatcher::getInstance()->getTopNode();
 }
 
 bool UiDevice::hasObject(const std::shared_ptr<UiSelector> selector) const