diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-24 01:04:12 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-24 01:04:12 +0200 |
commit | 86fe7782668c2e1ad359cafb98d72ecfd88b1ed8 (patch) | |
tree | 6af7a0a05bfd27dffe2bd4406b7f8911234defe2 /c/main.cpp | |
parent | 6807e951ae8faf7c3ba4c9b0b819864f35cb1ec5 (diff) | |
download | EpisodeBrowser-86fe7782668c2e1ad359cafb98d72ecfd88b1ed8.tar.gz |
Add const.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,9 +69,9 @@ void OnTerminate() noexcept TerminateMsg<TCHAR>(TEXT("a Prolog exception"), tsz); else TerminateMsg<char>("a Prolog exception", NULL); - } catch (Win32Error& e) { + } catch (const Win32Error& e) { TerminateMsg<TCHAR>(TEXT("a Windows error"), e.what<TCHAR>()); - } catch (std::exception& e) { + } catch (const std::exception& e) { TerminateMsg<char>("an exception", e.what()); } catch (...) { TerminateMsg<char>("an exception", NULL); |