From 4cf201e993b7459fb6e59463a01231af87f4e75d Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 27 Apr 2015 15:56:29 -0400 Subject: [PATCH] Switched to iterator --- openbr/plugins/gallery/binary.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openbr/plugins/gallery/binary.cpp b/openbr/plugins/gallery/binary.cpp index d87ebc0..4c7f682 100644 --- a/openbr/plugins/gallery/binary.cpp +++ b/openbr/plugins/gallery/binary.cpp @@ -178,10 +178,13 @@ class galGallery : public BinaryGallery else if (t.file.fte) { // Only write metadata for failure to enroll, but remove any stored QVariants of type cv::Mat File f = t.file; - QList values = f.localMetadata().values(); - for (int i=0; i i(metadata); + while (i.hasNext()) { + i.next(); + if (strcmp(i.value().typeName(),"cv::Mat") == 0) + f.remove(i.key()); + } stream << Template(f); } else -- libgit2 0.21.4