summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2008-04-22 18:28:41 +0000
committerishmal <ishmal@users.sourceforge.net>2008-04-22 18:28:41 +0000
commit445504596fcead2e6a6838dff3d3f6bedabc6ce4 (patch)
tree248f2d7e4e2d58e10f3e73a3c9723dd05ce63eee /src/color-profile.cpp
parentFix swatch enter-notify event propagation (diff)
downloadinkscape-445504596fcead2e6a6838dff3d3f6bedabc6ce4.tar.gz
inkscape-445504596fcead2e6a6838dff3d3f6bedabc6ce4.zip
Use improved Digest code. MD5 (and all others) tested on 32/64.
(bzr r5486)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp7
1 files 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<unsigned char*>(buf), bufLen);
- }
- id = digest.finishHex();
+ id = Digest::hashHex(Digest::HASH_MD5,
+ reinterpret_cast<unsigned char*>(buf), bufLen);
// Note: if this is not a valid profile, item.hprof will be set to null.
item.hprof = cmsOpenProfileFromMem(buf, bufLen);