1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-23 09:38:56 +08:00

avoid Ptr<> == NULL checks

This commit is contained in:
Alexander Alekhin
2018-09-08 18:37:30 +00:00
parent 5c36296895
commit abb211d064
11 changed files with 21 additions and 21 deletions

View File

@@ -101,7 +101,7 @@ bool TrackerFeatureSet::addTrackerFeature( String trackerFeatureType )
}
Ptr<TrackerFeature> feature = TrackerFeature::create( trackerFeatureType );
if( feature == 0 )
if (!feature)
{
return false;
}