From 9203f40f41e4a735d379d13867d277c696fb28c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Sep 2022 22:52:53 +0100 Subject: Fix some warnings noticed by the readability-* clang-tidy checkers. --- src/modules/extra/m_argon2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_argon2.cpp') diff --git a/src/modules/extra/m_argon2.cpp b/src/modules/extra/m_argon2.cpp index 57e2d895d..e972939fe 100644 --- a/src/modules/extra/m_argon2.cpp +++ b/src/modules/extra/m_argon2.cpp @@ -137,9 +137,9 @@ public: data.length(), salt.c_str(), salt.length(), - &raw_data[0], + raw_data.data(), raw_data.size(), - &encoded_data[0], + encoded_data.data(), encoded_data.size(), argon2Type, config.version); @@ -152,7 +152,7 @@ public: // to do anything useful with them if we don't encode them. // So we pretend this is the raw version, and instead make // ToPrintable return its input. - return std::string(&encoded_data[0], encoded_data.size()); + return std::string(encoded_data.data(), encoded_data.size()); } std::string ToPrintable(const std::string& raw) override -- cgit v1.3.1-10-gc9f91