auto apps = AccessibleWatcher::getInstance()->getApplications();
- for (auto app : apps)
+ for (auto &app : apps)
{
auto wins = app->getWindows();
std::transform(wins.begin(), wins.end(), std::back_inserter(ret),
std::unordered_map<int, std::shared_ptr<AccessibleApplication>> pidToAppNode{};
auto apps = AccessibleWatcher::getInstance()->getApplications();
- for (auto app : apps)
+ for (auto &app : apps)
{
app->getAccessibleNode()->updateName();
app->getAccessibleNode()->updatePid();
pidToAppNode[app->getAccessibleNode()->getPid()] = app;
}
- for (auto tWin : mTizenWindows)
+ for (auto &tWin : mTizenWindows)
{
LOGI("Visible win (%d) (%d %d %d %d) (%s)", tWin->getPid(), tWin->getWindowGeometry().mTopLeft.x, tWin->getWindowGeometry().mTopLeft.y, tWin->getWindowGeometry().width(),
tWin->getWindowGeometry().height(), tWin->getName().c_str());