From 225c7aa71d75510e636e71b9e6737e60984eb21d Mon Sep 17 00:00:00 2001 From: ishmal Date: Tue, 22 Apr 2008 18:28:41 +0000 Subject: [PATCH] Use improved Digest code. MD5 (and all others) tested on 32/64. --- src/color-profile.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/color-profile.cpp b/src/color-profile.cpp index 596e22d7a..6f7869990 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -941,11 +941,8 @@ Glib::ustring Inkscape::colorprofile_set_display_per( gpointer buf, guint bufLen id.clear(); if ( buf && bufLen ) { - Md5Digest digest; - if ( buf && bufLen ) { - digest.append(reinterpret_cast(buf), bufLen); - } - id = digest.finishHex(); + id = Digest::hashHex(Digest::HASH_MD5, + reinterpret_cast(buf), bufLen); // Note: if this is not a valid profile, item.hprof will be set to null. item.hprof = cmsOpenProfileFromMem(buf, bufLen); -- 2.30.2