diff options
| author | 2022-09-03 22:52:53 +0100 | |
|---|---|---|
| committer | 2022-09-03 23:17:05 +0100 | |
| commit | 9203f40f41e4a735d379d13867d277c696fb28c5 (patch) | |
| tree | 93a171344e801b44918229fdd6b8778293ab88aa /src/modules/m_md5.cpp | |
| parent | Fix some warnings noticed by the bugprone-* clang-tidy checkers. (diff) | |
Fix some warnings noticed by the readability-* clang-tidy checkers.
Diffstat (limited to 'src/modules/m_md5.cpp')
| -rw-r--r-- | src/modules/m_md5.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index 7386041c4..8a1c9eb3b 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -43,8 +43,8 @@ public: MD5_Update(&context, reinterpret_cast<const unsigned char*>(data.data()), data.length()); std::vector<unsigned char> bytes(16); - MD5_Final(&bytes[0], &context); - return std::string(reinterpret_cast<const char*>(&bytes[0]), bytes.size()); + MD5_Final(bytes.data(), &context); + return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size()); } MD5Provider(Module* parent) |
