Use reference type to reduce copy operation 91/295891/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 17 Jul 2023 01:20:40 +0000 (10:20 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 17 Jul 2023 01:20:40 +0000 (10:20 +0900)
commitdf19ab14df8021ce0e178b6f0c2a9e7f108b80a7
treebff67e70f17c9a9307452cc607b8c817da1ff85e
parentfaedb031cea55f5416a722275297f395a32a2e54
Use reference type to reduce copy operation

- Issue:
When the code iterates the list, some code repeats the unnecessary copy
operation.

- Solution:
Normally, reference type is used when the list is iterated. However,
some code did not use reference type, so those code would repeat
unnecessary copy operation. So, this patch fixes those types to
reference. Through this patch, unnecessary copy operation will be
removed.

Change-Id: Ib64f990c0f33ba5eea2977a80db4765f539c5b04
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
plugins/wakeup-manager/src/heap_tracer.cpp
plugins/wakeup-manager/src/wakeup_engine_manager.cpp
src/service_main.cpp