This commit is contained in:
2019-07-02 12:09:37 +02:00
parent 547ab8a749
commit fc2cc7e00c
8 changed files with 11 additions and 8 deletions

View File

@ -26,9 +26,9 @@ class qDefs : public QWidget {
static void DisplayExceptions(std::string emsg, std::string src) {
try {
throw;
} catch (sls::SocketError) {
} catch (const sls::SocketError &e) {
throw;
} catch (sls::SharedMemoryError) {
} catch (const sls::SharedMemoryError &e) {
throw;
} catch (const std::exception &e) {
ExceptionMessage(emsg, e.what(), src);
@ -42,9 +42,9 @@ class qDefs : public QWidget {
typename NonDeduced<CT>::type... Args) {
try {
throw;
} catch (sls::SocketError) {
} catch (const sls::SocketError &e) {
throw;
} catch (sls::SharedMemoryError) {
} catch (const sls::SharedMemoryError &e) {
throw;
} catch (const std::exception &e) {
ExceptionMessage(emsg, e.what(), src);