[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - vcl/osx

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 19 15:10:15 UTC 2019


 vcl/osx/salframe.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 053212cc3b09d141f06220a9175dbb376a614d22
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Jun 5 01:19:13 2019 +0300
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Nov 19 16:09:26 2019 +0100

    -[NSWindow setRestorable:] is present since 10.7
    
    No need to use objc_msgSend().
    
    Change-Id: I56c824e3206c37be4b60fb7d82b65c9d5e89958b

diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 797974727b1e..21eb05da7d76 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -219,10 +219,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
 
     [mpNSWindow setDelegate: static_cast<id<NSWindowDelegate> >(mpNSWindow)];
 
-    if( [mpNSWindow respondsToSelector: @selector(setRestorable:)])
-    {
-        objc_msgSend(mpNSWindow, @selector(setRestorable:), NO);
-    }
+    [mpNSWindow setRestorable:NO];
     const NSRect aRect = { NSZeroPoint, NSMakeSize( maGeometry.nWidth, maGeometry.nHeight )};
     mnTrackingRectTag = [mpNSView addTrackingRect: aRect owner: mpNSView userData: nil assumeInside: NO];
 


More information about the Libreoffice-commits mailing list