diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2023-09-07 15:37:51 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2023-09-08 13:40:15 +0000 |
commit | 4240a082b81d8ceb7615b1b4ca0d2857382f317b (patch) | |
tree | dd58b944a2e9d9f8a75721ba83d66d0a0aeb1f48 /src/dbwrapper.h | |
parent | f15f790618d328abd207d55e6291229eb2a8643f (diff) |
refactor: Use DataStream now that version/type are unused
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 eac9594aa1..44366d0033 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -167,7 +167,7 @@ public: template<typename V> bool GetValue(V& value) { try { - CDataStream ssValue{GetValueImpl(), SER_DISK, CLIENT_VERSION}; + DataStream ssValue{GetValueImpl()}; ssValue.Xor(dbwrapper_private::GetObfuscateKey(parent)); ssValue >> value; } catch (const std::exception&) { @@ -229,7 +229,7 @@ public: return false; } try { - CDataStream ssValue{MakeByteSpan(*strValue), SER_DISK, CLIENT_VERSION}; + DataStream ssValue{MakeByteSpan(*strValue)}; ssValue.Xor(obfuscate_key); ssValue >> value; } catch (const std::exception&) { |