diff --git a/modules/tracking/src/trackerFeature.cpp b/modules/tracking/src/trackerFeature.cpp index a5b59bdcf..9610fe528 100644 --- a/modules/tracking/src/trackerFeature.cpp +++ b/modules/tracking/src/trackerFeature.cpp @@ -65,8 +65,8 @@ Ptr TrackerFeature::create( const String& trackerFeatureType ) { if( trackerFeatureType.find( "FEATURE2D" ) == 0 ) { - size_t firstSep = trackerFeatureType.find_first_of( "." ); - size_t secondSep = trackerFeatureType.find_last_of( "." ); + size_t firstSep = trackerFeatureType.find_first_of('.'); + size_t secondSep = trackerFeatureType.find_last_of('.'); String detector = trackerFeatureType.substr( firstSep, secondSep - firstSep ); String descriptor = trackerFeatureType.substr( secondSep, trackerFeatureType.length() - secondSep );