From ae78f5a23ca82ead2af63d734c66be213daa61b0 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 9 Nov 2015 20:55:57 -0500 Subject: [PATCH] fixed binary compatibility --- openbr/plugins/metadata/stasm4.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/metadata/stasm4.cpp b/openbr/plugins/metadata/stasm4.cpp index 4305156..86dc024 100644 --- a/openbr/plugins/metadata/stasm4.cpp +++ b/openbr/plugins/metadata/stasm4.cpp @@ -193,6 +193,20 @@ class StasmTransform : public UntrainableMetaTransform } } } + + // An unfortunate hack to preserve FaceRecognition binary compatibility + // from when StasmTransform was independent. + void load(QDataStream &stream) + { + int size; + stream >> size; + } + + void store(QDataStream &stream) const + { + const int size = 1; + stream << size; + } }; BR_REGISTER(Transform, StasmTransform) -- libgit2 0.21.4