Fixed the build error using gcc 13 13/295213/1
authorwchang kim <wchang.kim@samsung.com>
Tue, 4 Jul 2023 00:38:34 +0000 (09:38 +0900)
committerwchang kim <wchang.kim@samsung.com>
Tue, 4 Jul 2023 00:38:34 +0000 (09:38 +0900)
Change-Id: I99417c153f72329f78f60523a0f242e2c8efec15

scl/sclcontext.h
scl/sclwindows.cpp

index 9f70bbdca79fed98fcbcca7cf82c71d62b4342c5..ca9af8a0db80e8d988ecfd2ab2ff113556983c81 100644 (file)
@@ -65,7 +65,7 @@ typedef struct { // A struct for identifying Magnifier custom label information
 } MagnifierCustomLabelIdx;
 class MagnifierCustomLabelIdxCompare { // Comparison class for MagnifierCustomLabelIdx
 public:
-    bool operator()(const MagnifierCustomLabelIdx x, const MagnifierCustomLabelIdx y) {
+    bool operator()(const MagnifierCustomLabelIdx& x, const MagnifierCustomLabelIdx& y) const {
         if (x.touch_id != y.touch_id) {
             return x.touch_id > y.touch_id;
         } else {
index 5492bf6b9dc02934a53544bc218b71daebfa391f..242fdb8989afe87f3218749c597718618b66aa18 100644 (file)
@@ -304,10 +304,12 @@ bool CSCLWindows::close_popup(sclwindow window, sclboolean timed_out)
         }
 
         if (SCL_EVENT_PASS_ON == handler->on_event_notification(SCL_UINOTITYPE_POPUP_CLOSING, &desc)) {
+#if 0 // NOT_USED
             SclNotiPopupClosedDesc closed_desc;
             closed_desc.ui_event_desc = NULL;
             closed_desc.input_mode = desc.input_mode;
             closed_desc.timed_out = desc.timed_out;
+#endif
             handler->on_event_notification(SCL_UINOTITYPE_POPUP_CLOSED, &desc);
 
             CSCLKeyFocusHandler *focus_handler = CSCLKeyFocusHandler::get_instance();
@@ -1144,4 +1146,4 @@ void CSCLWindows::set_window_backend_callback(ISCLUIWindowBackendCallback *callb
     if (impl) {
         impl->set_window_backend_callback(callback, data);
     }
-}
\ No newline at end of file
+}