[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - vcl/osx

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 30 18:34:33 UTC 2019


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

New commits:
commit d8eb80f195359aeebb56e19d5ad7a72fac5db02e
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Jun 5 01:19:13 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Oct 30 19:33:28 2019 +0100

    -[NSWindow setRestorable:] is present since 10.7
    
    No need to use objc_msgSend().
    
    Change-Id: I56c824e3206c37be4b60fb7d82b65c9d5e89958b
    (cherry picked from commit c6ab40a2dd25d94786bda82aed85f086f00f050b)
    Reviewed-on: https://gerrit.libreoffice.org/81773
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 761f7898d6ad..2a60c8d85f81 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -224,10 +224,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