[Libreoffice-commits] core.git: vcl/inc

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 11 20:07:57 UTC 2021


 vcl/inc/quartz/common.h |   10 ----------
 1 file changed, 10 deletions(-)

New commits:
commit f0fac3d7eeaeae28a80f3f74310b1bd7c92f5cf4
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Jan 11 19:30:51 2021 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Jan 11 21:07:18 2021 +0100

    Bin two unused macros
    
    Change-Id: I3e84b2183401e82b7b66c7a191b38d45ee935854
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109109
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/inc/quartz/common.h b/vcl/inc/quartz/common.h
index 0037111985f8..851fa5d7a727 100644
--- a/vcl/inc/quartz/common.h
+++ b/vcl/inc/quartz/common.h
@@ -32,16 +32,6 @@
 #include <postmac.h>
 
 #include <sal/types.h>
-
-// CoreFoundation designers, in their wisdom, decided that CFRelease of NULL
-// cause a Crash, yet few API can return NULL when asking for the creation
-// of an object, which force us to paper the code with ugly if construct everywhere
-// and open the door to very nasty crash on rare occasion
-// this macro hide the mess
-#define SafeCFRelease(a) do { if(a) { CFRelease(a); (a)=NULL; } } while(false)
-
-#define round_to_long(a) ((a) >= 0 ? ((long)((a) + 0.5)) : ((long)((a) - 0.5)))
-
 #include <vcl/salgtype.hxx>
 
 std::ostream &operator <<(std::ostream& s, CTFontRef pFont);


More information about the Libreoffice-commits mailing list