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:
@@ -101,7 +101,7 @@ bool TrackerFeatureSet::addTrackerFeature( String trackerFeatureType )
|
||||
}
|
||||
Ptr<TrackerFeature> feature = TrackerFeature::create( trackerFeatureType );
|
||||
|
||||
if( feature == 0 )
|
||||
if (!feature)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user