mv_machine_learning: fix coverity issue 35/318535/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.232932 accepted/tizen/unified/20241017.114720 accepted/tizen/unified/toolchain/20241022.122707 accepted/tizen/unified/toolchain/20241022.123108 accepted/tizen/unified/x/20241017.170411 accepted/tizen/unified/x/asan/20241022.113557 tizen_9.0_m2_release
authorInki Dae <inki.dae@samsung.com>
Wed, 2 Oct 2024 01:06:12 +0000 (10:06 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 2 Oct 2024 01:06:12 +0000 (10:06 +0900)
Version : 1.0.11
Issue type : code cleanup

Fix a coverity issue, CID-1792670, by using const auto & instead of just auto.

Change-Id: Ifb9d174062db2700c036634fbded847cbe5519d2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/object_detection/src/PalmDetection.cpp
packaging/capi-media-vision.spec

index 44bbce9bd51c4af4c11a9afa54e6fb7943bf8f17..0c9db3f25ab6cd4e4491aecfb040600fcbfbf2a0 100644 (file)
@@ -313,7 +313,7 @@ template<typename T> ObjectDetectionResult &PalmDetection<T>::result()
 
        _result.number_of_objects = 0;
 
-       for (auto palm : palmResult.palms) {
+       for (const auto &palm : palmResult.palms) {
                float min_x = static_cast<float>(img_width);
                float max_x = 0.0f;
                float min_y = static_cast<float>(img_height);
index ce0cbeec3441a53db1815e05c209bd5a640decb8..ffdab7f0eb995cc40e70f72eb91a66c256217fdd 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     1.0.10
+Version:     1.0.11
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0