1
0
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:
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

@@ -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;