From 0f528187389d8e409fea0dee07fd174c4ee35c12 Mon Sep 17 00:00:00 2001 From: Yoonsang Lee Date: Wed, 2 Nov 2016 07:00:34 +0900 Subject: [PATCH 1/1] [3.0] Change parameter type of GrabKeyList APIs to const reference to avoid overhead of copy-construction Change-Id: Ica53cb7b966f39b396b0dc04fa6bd5bc3a555868 --- adaptors/ecore/wayland/key-grab-ecore-wl.cpp | 4 ++-- adaptors/tizen/key-grab.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adaptors/ecore/wayland/key-grab-ecore-wl.cpp b/adaptors/ecore/wayland/key-grab-ecore-wl.cpp index 12ad210..85f92c3 100755 --- a/adaptors/ecore/wayland/key-grab-ecore-wl.cpp +++ b/adaptors/ecore/wayland/key-grab-ecore-wl.cpp @@ -82,7 +82,7 @@ bool UngrabKey( Window window, Dali::KEY daliKey ) 0, 0 ); } -Dali::Vector GrabKeyList( Window window, const Dali::Vector daliKeyVector, const Dali::Vector grabModeVector) +Dali::Vector GrabKeyList( Window window, const Dali::Vector& daliKeyVector, const Dali::Vector& grabModeVector) { Dali::Vector resultVector; Eina_List *keyList = NULL, *grabList = NULL, *l = NULL, *m = NULL; @@ -152,7 +152,7 @@ Dali::Vector GrabKeyList( Window window, const Dali::Vector dal return resultVector; } -Dali::Vector UngrabKeyList( Window window, const Dali::Vector daliKeyVector ) +Dali::Vector UngrabKeyList( Window window, const Dali::Vector& daliKeyVector ) { Dali::Vector resultVector; Eina_List *keyList = NULL, *ungrabList = NULL, *l = NULL, *m = NULL; diff --git a/adaptors/tizen/key-grab.h b/adaptors/tizen/key-grab.h index 931f9aa..ff310e5 100755 --- a/adaptors/tizen/key-grab.h +++ b/adaptors/tizen/key-grab.h @@ -128,7 +128,7 @@ DALI_IMPORT_API bool UngrabKey( Window window, Dali::KEY daliKey ); * @param[in] grabModeVector The Dali::Vector of grab modes for the keys * @return Dali::Vector Size is zero when error occurs, true/false if the grab succeeds/fails. */ -DALI_IMPORT_API Dali::Vector GrabKeyList( Window window, const Dali::Vector daliKeyVector, const Dali::Vector grabModeVector); +DALI_IMPORT_API Dali::Vector GrabKeyList( Window window, const Dali::Vector& daliKeyVector, const Dali::Vector& grabModeVector); /** @@ -144,7 +144,7 @@ DALI_IMPORT_API Dali::Vector GrabKeyList( Window window, const Dali::Vecto * @note If this function is called between key down and up events of a grabbed key, * an application doesn't receive the key up event. */ -DALI_IMPORT_API Dali::Vector UngrabKeyList( Window window, const Dali::Vector daliKeyVector ); +DALI_IMPORT_API Dali::Vector UngrabKeyList( Window window, const Dali::Vector& daliKeyVector ); } // namespace KeyGrab -- 2.7.4