summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2016-01-05 23:51:54 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-01-07 12:03:04 +0100
commit8d364f56f4cd445c55e3965c99875b31c5f3057b (patch)
tree9174ae0119daa89a7daacc7433c5b980614d48fe /src/lib/ecore_cocoa
parentb9cd3ac82da32aa8f51f494a78cd880e0b35ede3 (diff)
ecore_cocoa: possibly avoid useless copies
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 25a7c58c5a..32b37511d4 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -346,8 +346,7 @@ ecore_cocoa_window_size_min_set(Ecore_Cocoa_Window *window,
346{ 346{
347 EINA_SAFETY_ON_NULL_RETURN(window); 347 EINA_SAFETY_ON_NULL_RETURN(window);
348 348
349 NSSize size = {w,h}; 349 window->window.contentMinSize = NSMakeSize(w, h);
350 window->window.contentMinSize = size;
351} 350}
352 351
353EAPI void 352EAPI void
@@ -357,8 +356,7 @@ ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
357{ 356{
358 EINA_SAFETY_ON_NULL_RETURN(window); 357 EINA_SAFETY_ON_NULL_RETURN(window);
359 358
360 NSSize size = {w,h}; 359 window->window.contentMaxSize = NSMakeSize(w, h);
361 window->window.contentMaxSize = size;
362} 360}
363 361
364EAPI void 362EAPI void
@@ -368,8 +366,7 @@ ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
368{ 366{
369 EINA_SAFETY_ON_NULL_RETURN(window); 367 EINA_SAFETY_ON_NULL_RETURN(window);
370 368
371 NSSize size = {w,h}; 369 window->window.contentResizeIncrements = NSMakeSize(w, h);
372 window->window.contentResizeIncrements = size;
373} 370}
374 371
375EAPI void 372EAPI void