diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-digest.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/core/slang-digest.h b/source/core/slang-digest.h index d1bc80b40..47c0cd8f7 100644 --- a/source/core/slang-digest.h +++ b/source/core/slang-digest.h @@ -4,6 +4,8 @@ namespace Slang { + using slang::Digest; + // Wrapper struct that holds objects necessary for hashing. struct DigestBuilder { @@ -19,9 +21,11 @@ namespace Slang hashGen.update(&context, item); } - void finalize(slang::Digest* outHash) + Digest finalize() { - hashGen.finalize(&context, outHash); + Digest hash; + hashGen.finalize(&context, &hash); + return hash; } private: |
