From 3e189a2b417bbb3f5c7a616815c65be383bad383 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 14 Aug 2013 12:44:11 +0400 Subject: [PATCH] Replaced calls to Ptr::ptr to ::dynamicCast. --- modules/core/include/opencv2/core/operations.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 58be977cae..f8aeddfb11 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -445,13 +445,13 @@ int print(const Matx<_Tp, m, n>& matx, FILE* stream = stdout) template inline Ptr<_Tp> Algorithm::create(const String& name) { - return _create(name).ptr<_Tp>(); + return _create(name).dynamicCast<_Tp>(); } template inline void Algorithm::set(const char* _name, const Ptr<_Tp>& value) { - Ptr algo_ptr = value. template ptr(); + Ptr algo_ptr = value. template dynamicCast(); if (!algo_ptr) { CV_Error( Error::StsUnsupportedFormat, "unknown/unsupported Ptr type of the second parameter of the method Algorithm::set"); }