[Tizen] Change parameter type of GrabKeyList APIs to const reference 07/122307/1
authordongsug.song <dongsug.song@samsung.com>
Fri, 31 Mar 2017 04:47:58 +0000 (13:47 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 31 Mar 2017 04:48:01 +0000 (13:48 +0900)
This reverts commit 95e6096a3407f18c7ac0c9f1c541bf6cc488d58a.

Change-Id: I30afa385cf765a951d76b1f926d180d2f076f544

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 65d11e5..898779b 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