Skip to content
Snippets Groups Projects
Commit 43af73cc authored by Christoph Hasse's avatar Christoph Hasse :cartwheel_tone1:
Browse files

fix: Wpessimizing-move

parent 91149b93
No related branches found
No related tags found
1 merge request!1247Fix: clang11 warnings
......@@ -103,7 +103,7 @@ void IncidentSvc::addListener( IIncidentListener* lis, const std::string& type,
[&]( const Listener& j ) { return j.priority >= prio; } );
// We insert before the current position
DEBMSG << "Adding [" << type << "] listener '" << getListenerName( lis ) << "' with priority " << prio << endmsg;
llist.emplace( i, std::move( IIncidentSvc::Listener{lis, prio, rethrow, singleShot} ) );
llist.emplace( i, IIncidentSvc::Listener{lis, prio, rethrow, singleShot} );
}
// ============================================================================
IncidentSvc::ListenerMap::iterator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment