Revert "[Tizen] Clipboard: fix integer underflow"
authorWonsik Jung <sidein@samsung.com>
Tue, 17 Aug 2021 23:54:02 +0000 (08:54 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 17 Aug 2021 23:54:08 +0000 (08:54 +0900)
This reverts commit 546d141a0f367154595e05e405ff0462a50d75b5.

dali/internal/clipboard/tizen-wayland/clipboard-impl-ecore-wl.cpp

index b54da7d..15aa6a5 100644 (file)
@@ -307,8 +307,7 @@ void Clipboard::RequestItem()
  */
 unsigned int Clipboard::NumberOfItems()
 {
-  int count = mImpl->GetCount();
-  return (count < 0 ? 0 : count);
+  return mImpl->GetCount();
 }
 
 void Clipboard::ShowClipboard()