Commit ae78f5a23ca82ead2af63d734c66be213daa61b0

Authored by Josh Klontz
1 parent 587f466c

fixed binary compatibility

openbr/plugins/metadata/stasm4.cpp
@@ -193,6 +193,20 @@ class StasmTransform : public UntrainableMetaTransform @@ -193,6 +193,20 @@ class StasmTransform : public UntrainableMetaTransform
193 } 193 }
194 } 194 }
195 } 195 }
  196 +
  197 + // An unfortunate hack to preserve FaceRecognition binary compatibility
  198 + // from when StasmTransform was independent.
  199 + void load(QDataStream &stream)
  200 + {
  201 + int size;
  202 + stream >> size;
  203 + }
  204 +
  205 + void store(QDataStream &stream) const
  206 + {
  207 + const int size = 1;
  208 + stream << size;
  209 + }
196 }; 210 };
197 211
198 BR_REGISTER(Transform, StasmTransform) 212 BR_REGISTER(Transform, StasmTransform)