Merge pull request #1392 from SpecLad:flann-uninit

pull/1410/head
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit 33d8d8ffd1
  1. 3
      modules/flann/include/opencv2/flann/any.h

@ -255,8 +255,7 @@ public:
const T& cast() const
{
if (policy->type() != typeid(T)) throw anyimpl::bad_any_cast();
void* obj = const_cast<void*>(object);
T* r = reinterpret_cast<T*>(policy->get_value(&obj));
T* r = reinterpret_cast<T*>(policy->get_value(const_cast<void **>(&object)));
return *r;
}

Loading…
Cancel
Save