Catch a CGenErr by const reference rather than by value

This fixes alerts from LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2020-06-24 08:39:27 +02:00
parent 86de570dbd
commit 172593f7b9
2 changed files with 2 additions and 2 deletions

View file

@ -1079,7 +1079,7 @@ void CClientDlg::Connect ( const QString& strSelectedAddress,
} }
} }
catch ( CGenErr generr ) catch ( const CGenErr& generr )
{ {
// show error message and return the function // show error message and return the function
QMessageBox::critical ( this, APP_NAME, generr.GetErrorText(), "Close", nullptr ); QMessageBox::critical ( this, APP_NAME, generr.GetErrorText(), "Close", nullptr );

View file

@ -706,7 +706,7 @@ int main ( int argc, char** argv )
} }
} }
catch ( CGenErr generr ) catch ( const CGenErr& generr )
{ {
// show generic error // show generic error
#ifndef HEADLESS #ifndef HEADLESS