diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 20:03:35 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:55:31 +0200 |
commit | fac30eec42c486ec1bfd696293040a7aa0f04625 (patch) | |
tree | 562aadddf3da65e1366d45b2860d8e11c476d866 /src/wallet/salvage.cpp | |
parent | faece47c4706783e0460ed977390a44630b2d44c (diff) | |
download | bitcoin-fac30eec42c486ec1bfd696293040a7aa0f04625.tar.xz |
refactor: Replace &foo[0] with foo.data()
Diffstat (limited to 'src/wallet/salvage.cpp')
-rw-r--r-- | src/wallet/salvage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/salvage.cpp b/src/wallet/salvage.cpp index 6d912be019..ea045eb6d8 100644 --- a/src/wallet/salvage.cpp +++ b/src/wallet/salvage.cpp @@ -154,8 +154,8 @@ bool RecoverDatabaseFile(const fs::path& file_path, bilingual_str& error, std::v warnings.push_back(strprintf(Untranslated("WARNING: WalletBatch::Recover skipping %s: %s"), strType, strErr)); continue; } - Dbt datKey(&row.first[0], row.first.size()); - Dbt datValue(&row.second[0], row.second.size()); + Dbt datKey(row.first.data(), row.first.size()); + Dbt datValue(row.second.data(), row.second.size()); int ret2 = pdbCopy->put(ptxn, &datKey, &datValue, DB_NOOVERWRITE); if (ret2 > 0) fSuccess = false; |