FileSearch: Avoid copy of function object.
authorEike Ziller <eike.ziller@theqtcompany.com>
Wed, 13 May 2015 09:26:28 +0000 (11:26 +0200)
committerEike Ziller <eike.ziller@theqtcompany.com>
Fri, 15 May 2015 10:30:12 +0000 (10:30 +0000)
commit3a2e9c13ddd7a3d9afaf56e128c349eef123d5f6
tree3c4aeebd9ddd234da222ca3f09d45215bf7c1c7a
parent0b91b77cdc87fb60e3a4ca11fe2cf40bead4e06f
FileSearch: Avoid copy of function object.

Converting std::unary_function to std::function will create a copy,
which we do not want. Actually std::unary_function as a base class
doesn't serve a purpose at all in this context, so we can just remove
it. Bind a std::function to a pointer to our search object instead.

Change-Id: I31db62312eefdff19b09fbb4eb20e8e666125874
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
src/libs/utils/filesearch.cpp