Commit 3d812be1bf48456fad96f80bd6943689e55a7615

Authored by ksamak
1 parent 89ba580f

focuspoll: optimized complexity for gdocs paths

plugins/focuspoll/src/accessibilitywatcher.cpp
... ... @@ -487,13 +487,11 @@ AccessibilityWatcher::getKixCaret (FocusInfo& focus, const AtspiEvent* event, At
487 487 {
488 488 // remove the last 2 vector items, cause these change too fast
489 489 pathFound.pop_back ();
490   - pathFound.pop_back ();
491 490 AccessibilityWatcher::getInstance ()->optimizedPaths.insert (AccessibilityWatcher::getInstance ()->optimizedPaths.begin (), pathFound);
492 491 cleanupPaths();
493 492 } else {
494 493 // add the found path to the base path, making it more precise
495 494 pathFound.pop_back ();
496   - pathFound.pop_back ();
497 495 path.insert (path.begin (), pathFound.begin (), pathFound.end ());
498 496 }
499 497 return true;
... ...