projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f9ff1
)
facedetect: wrong form to write the delete operator
author
Vanessa Chipi
<vchipirras6@gmail.com>
Mon, 10 Aug 2015 21:02:12 +0000
(23:02 +0200)
committer
Luis de Bethencourt
<luis@debethencourt.com>
Tue, 11 Aug 2015 10:26:17 +0000
(11:26 +0100)
The delete operator is written this way: delete (cascade). This way is
misspelled, it is an operator, not a function. Delete the parentheses.
ext/opencv/gstfacedetect.cpp
patch
|
blob
|
history
diff --git
a/ext/opencv/gstfacedetect.cpp
b/ext/opencv/gstfacedetect.cpp
index
a5e4b99
..
722244f
100644
(file)
--- a/
ext/opencv/gstfacedetect.cpp
+++ b/
ext/opencv/gstfacedetect.cpp
@@
-805,7
+805,7
@@
gst_face_detect_load_profile (GstFaceDetect * filter, gchar * profile)
cascade = new CascadeClassifier (profile);
if (cascade->empty ()) {
GST_ERROR_OBJECT (filter, "Invalid profile file: %s", profile);
- delete
(cascade)
;
+ delete
cascade
;
return NULL;
}