motioncells: protect against not found id
authorLuis de Bethencourt <luis.bg@samsung.com>
Thu, 5 Mar 2015 15:54:55 +0000 (15:54 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Thu, 5 Mar 2015 15:56:44 +0000 (15:56 +0000)
commit290508932e64ef1b1e518ad216157e4969810b8e
tree0ee6bf8a15865e01b45113c9a250364cceb7c0d7
parent632854eba3b97f0d52076fa3b9f6c9298fbe0847
motioncells: protect against not found id

If searchIdx() doesn't find the id it returns -1, which breaks
motioncelssvector.at (idx). Check for it and return if not found.

Changing a few other lines for style consistency.
ext/opencv/motioncells_wrapper.cpp