e_log: change code not to use direct access of E_Client's value 98/314598/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 15 Jul 2024 06:04:44 +0000 (15:04 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 16 Jul 2024 05:07:52 +0000 (05:07 +0000)
Change-Id: I2bda87ab1188ce2126930ed1db1b242b1e8ebe7a

src/include/e_log.h

index 05f59a60a41c82a4fa73f7c4773909d93346e65e..81b0c766d83ec289553706cd4081609a02bf587d 100644 (file)
 #endif
 
 static inline Ecore_Window
-e_log_client_util_win_get(const E_Client *ec)
+e_log_client_util_win_get(E_Client *ec)
 {
-   if (!ec) return 0;
-   if (!ec->pixmap) return 0;
-   return e_pixmap_window_get(ec->pixmap);
+   return e_pixmap_window_get(e_client_pixmap_get(ec));
 }
 
 # if (E_LOGGING >= 2) /* new version */