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:
parent
86de570dbd
commit
172593f7b9
2 changed files with 2 additions and 2 deletions
|
@ -1079,7 +1079,7 @@ void CClientDlg::Connect ( const QString& strSelectedAddress,
|
|||
}
|
||||
}
|
||||
|
||||
catch ( CGenErr generr )
|
||||
catch ( const CGenErr& generr )
|
||||
{
|
||||
// show error message and return the function
|
||||
QMessageBox::critical ( this, APP_NAME, generr.GetErrorText(), "Close", nullptr );
|
||||
|
|
|
@ -706,7 +706,7 @@ int main ( int argc, char** argv )
|
|||
}
|
||||
}
|
||||
|
||||
catch ( CGenErr generr )
|
||||
catch ( const CGenErr& generr )
|
||||
{
|
||||
// show generic error
|
||||
#ifndef HEADLESS
|
||||
|
|
Loading…
Reference in a new issue