mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-21 23:01:45 +08:00
avoid Ptr<> == NULL
checks
This commit is contained in:
@@ -93,7 +93,7 @@ int main( int argc, char** argv ){
|
||||
|
||||
//instantiates the specific Tracker
|
||||
Ptr<Tracker> tracker = createTrackerByName(tracker_algorithm);
|
||||
if( tracker == NULL )
|
||||
if (!tracker)
|
||||
{
|
||||
cout << "***Error in the instantiation of the tracker...***\n";
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user