Skip to content
  • Eike Ziller's avatar
    FileSearch: Avoid copy of function object. · 3a2e9c13
    Eike Ziller authored
    
    
    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: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
    3a2e9c13