[3.0] Change parameter type of GrabKeyList APIs to const reference 91/97691/1 accepted/tizen/common/20161115.200910 accepted/tizen/ivi/20161115.234641 accepted/tizen/mobile/20161115.234434 accepted/tizen/tv/20161115.234532 accepted/tizen/wearable/20161115.234607 submit/tizen/20161115.111846
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 02:11:53 +0000 (11:11 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 02:12:02 +0000 (11:12 +0900)
This reverts commit b04bd7edcd0112e459f0fcd034cba645ac7e185b.

Change-Id: I901524701027ece7b39ff7671dd26e7710d5eb59

adaptors/ecore/wayland/key-grab-ecore-wl.cpp
adaptors/tizen/key-grab.h

index 12ad210..85f92c3 100755 (executable)
@@ -82,7 +82,7 @@ bool UngrabKey( Window window, Dali::KEY daliKey )
                                       0, 0 );
 }
 
-Dali::Vector<bool> GrabKeyList( Window window, const Dali::Vector<Dali::KEY> daliKeyVector, const Dali::Vector<KeyGrabMode> grabModeVector)
+Dali::Vector<bool> GrabKeyList( Window window, const Dali::Vector<Dali::KEY>& daliKeyVector, const Dali::Vector<KeyGrabMode>& grabModeVector)
 {
   Dali::Vector<bool> resultVector;
   Eina_List *keyList = NULL, *grabList = NULL, *l = NULL, *m = NULL;
@@ -152,7 +152,7 @@ Dali::Vector<bool> GrabKeyList( Window window, const Dali::Vector<Dali::KEY> dal
   return resultVector;
 }
 
-Dali::Vector<bool> UngrabKeyList( Window window, const Dali::Vector<Dali::KEY> daliKeyVector )
+Dali::Vector<bool> UngrabKeyList( Window window, const Dali::Vector<Dali::KEY>& daliKeyVector )
 {
   Dali::Vector<bool> resultVector;
   Eina_List *keyList = NULL, *ungrabList = NULL, *l = NULL, *m = NULL;
index 931f9aa..ff310e5 100755 (executable)
@@ -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<bool> GrabKeyList( Window window, const Dali::Vector<Dali::KEY> daliKeyVector, const Dali::Vector<KeyGrabMode> grabModeVector);
+DALI_IMPORT_API Dali::Vector<bool> GrabKeyList( Window window, const Dali::Vector<Dali::KEY>& daliKeyVector, const Dali::Vector<KeyGrabMode>& grabModeVector);
 
 
 /**
@@ -144,7 +144,7 @@ DALI_IMPORT_API Dali::Vector<bool> 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<bool> UngrabKeyList( Window window, const Dali::Vector<Dali::KEY> daliKeyVector );
+DALI_IMPORT_API Dali::Vector<bool> UngrabKeyList( Window window, const Dali::Vector<Dali::KEY>& daliKeyVector );
 
 
 } // namespace KeyGrab