Skip to content

Commit 4240a08

Browse files
committed
refactor: Use DataStream now that version/type are unused
1 parent f15f790 commit 4240a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dbwrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class CDBIterator
167167

168168
template<typename V> bool GetValue(V& value) {
169169
try {
170-
CDataStream ssValue{GetValueImpl(), SER_DISK, CLIENT_VERSION};
170+
DataStream ssValue{GetValueImpl()};
171171
ssValue.Xor(dbwrapper_private::GetObfuscateKey(parent));
172172
ssValue >> value;
173173
} catch (const std::exception&) {
@@ -229,7 +229,7 @@ class CDBWrapper
229229
return false;
230230
}
231231
try {
232-
CDataStream ssValue{MakeByteSpan(*strValue), SER_DISK, CLIENT_VERSION};
232+
DataStream ssValue{MakeByteSpan(*strValue)};
233233
ssValue.Xor(obfuscate_key);
234234
ssValue >> value;
235235
} catch (const std::exception&) {

0 commit comments

Comments
 (0)