diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-10-27 17:39:42 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-10-27 17:39:42 +0100 |
commit | ad5aae15b40dcbdbfc08221e615f06b030b92334 (patch) | |
tree | 731356d063c6e597c24b9a877e8f9dcff92af31e /src/dbwrapper.h | |
parent | 8f3b3cdee497b8a1d7c6a7279e7bb13435527b60 (diff) |
constify missing catch cases
- ensure all missing catch cases are constant where possible
Diffstat (limited to 'src/dbwrapper.h')
-rw-r--r-- | src/dbwrapper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbwrapper.h b/src/dbwrapper.h index aa28767508..1d31ab8ae5 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -104,7 +104,7 @@ public: try { CDataStream ssKey(slKey.data(), slKey.data() + slKey.size(), SER_DISK, CLIENT_VERSION); ssKey >> key; - } catch(std::exception &e) { + } catch (const std::exception&) { return false; } return true; @@ -120,7 +120,7 @@ public: CDataStream ssValue(slValue.data(), slValue.data() + slValue.size(), SER_DISK, CLIENT_VERSION); ssValue.Xor(*obfuscate_key); ssValue >> value; - } catch(std::exception &e) { + } catch (const std::exception&) { return false; } return true; |