From ed1a291dfa0c155f801d96e1f1d04aa41a8215e2 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Thu, 23 Jun 2016 12:56:45 +0200 Subject: [PATCH] input: correct find method to be called --- src/anbox/graphics/mir_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/graphics/mir_window.cpp b/src/anbox/graphics/mir_window.cpp index 9a24d35..dd4afdf 100644 --- a/src/anbox/graphics/mir_window.cpp +++ b/src/anbox/graphics/mir_window.cpp @@ -45,7 +45,7 @@ public: void erase(int id) { - auto it = find_or_create(slots_.begin(), slots_.end(), id); + auto it = std::find(slots_.begin(), slots_.end(), id); if (it != slots_.end()) { auto index = std::distance(slots_.begin(), it);