summaryrefslogtreecommitdiff
path: root/source/core/slang-digest-util.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2022-11-30 22:26:55 +0100
committerGitHub <noreply@github.com>2022-11-30 13:26:55 -0800
commit976f578585a4d4ed24e37d0c45a94a8e6afcff19 (patch)
tree60897092962bfd562d026b81a29096efbfc85816 /source/core/slang-digest-util.cpp
parent09684224d5ab63f530d66c0be65fa50e6fc5290b (diff)
Cleanup DigestBuilder and MD5HashGen (#2539)
* Cleanup DigestBuilder and MD5HashGen * Fix templates Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/core/slang-digest-util.cpp')
-rw-r--r--source/core/slang-digest-util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-digest-util.cpp b/source/core/slang-digest-util.cpp
index d235f2cf0..8252dce65 100644
--- a/source/core/slang-digest-util.cpp
+++ b/source/core/slang-digest-util.cpp
@@ -12,15 +12,15 @@ namespace Slang
/*static*/ Digest DigestUtil::computeDigestForStringSlice(UnownedStringSlice text)
{
DigestBuilder builder;
- builder.addToDigest(text);
+ builder.append(text);
return builder.finalize();
}
/*static*/ Digest DigestUtil::combine(const Digest& digestA, const Digest& digestB)
{
DigestBuilder builder;
- builder.addToDigest(digestA);
- builder.addToDigest(digestB);
+ builder.append(digestA);
+ builder.append(digestB);
return builder.finalize();
}