Fix a few compiler warnings

This commit is contained in:
Gioacchino Mazzurco 2020-03-23 16:44:06 +01:00
parent 1fd6e7e97a
commit cdafb7e27f
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ $%inputParamsDeserialization%$
const std::weak_ptr<rb::Service> weakService(mService);
const std::weak_ptr<rb::Session> weakSession(session);
$%callbackName%$ = [this, weakService, weakSession]($%callbackParams%$)
$%callbackName%$ = [weakService, weakSession]($%callbackParams%$)
{
auto session = weakSession.lock();
if(!session || session->is_closed()) return;