constify missing catch cases

- ensure all missing catch cases are constant where possible
This commit is contained in:
Philip Kaufmann
2015-10-27 17:39:42 +01:00
parent 8f3b3cdee4
commit ad5aae15b4
4 changed files with 5 additions and 5 deletions

View File

@@ -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;