fixes for defects from code coverity
This commit is contained in:
@@ -398,7 +398,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1minMaxLocManual
|
||||
|
||||
return result;
|
||||
|
||||
} catch(cv::Exception e) {
|
||||
} catch(const cv::Exception& e) {
|
||||
LOGD("Core::n_1minMaxLoc() catched cv::Exception: %s", e.what());
|
||||
jclass je = env->FindClass("org/opencv/core/CvException");
|
||||
if(!je) je = env->FindClass("java/lang/Exception");
|
||||
@@ -471,7 +471,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize
|
||||
|
||||
return result;
|
||||
|
||||
} catch(cv::Exception e) {
|
||||
} catch(const cv::Exception& e) {
|
||||
LOGD("Core::n_1getTextSize() catched cv::Exception: %s", e.what());
|
||||
jclass je = env->FindClass("org/opencv/core/CvException");
|
||||
if(!je) je = env->FindClass("java/lang/Exception");
|
||||
|
Reference in New Issue
Block a user