[Tizen] Change parameter type of GrabKeyList APIs to const reference 04/113804/1
authorminho.sun <minho.sun@samsung.com>
Thu, 9 Feb 2017 02:06:37 +0000 (11:06 +0900)
committerminho.sun <minho.sun@samsung.com>
Thu, 9 Feb 2017 02:06:57 +0000 (11:06 +0900)
This reverts commit 3c49b031d758537d727e9eeda8fad956b888cc68.

Change-Id: Ibc6aa283d858c82fb0a2e9f622452149d6f3e2bd

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

index 12ad210d0a9de1b7b27a66fb88552d91b19e28d6..85f92c3892b3eb7083d98819fa96bec3500a9fbb 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 931f9aa8c35755682e20e36449709a40ba6456d1..ff310e5263a320b1edeb3b2e205ad6132b2af1cf 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