From a8669b56b194a7cd6da771dfb9904710da24c0b4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 16 Aug 2014 11:48:48 +0300 Subject: fdo#82580: Win32 GetObject() simplification We call the Win32 GetObject() in just one source file and there it is the A version we mean. (As such, as we call it to get BITMAP objects, which do not have different A and W variants, we could as well call GetObjectW().) Note that we have several own member functions called GetObject(), so until those are renamed we still need to #undef the GetObject definition (from ). (No, I am not working on the EasyHack fdo#82580 as a whole. It is intended for some less mature LO contributor. I just did a few small things because I couldn't resist.) Change-Id: Idab79503b3d899ef19f0608677752a62b20302ff --- include/postwin.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include/postwin.h') diff --git a/include/postwin.h b/include/postwin.h index a76bcb875226..64ac27eb5837 100644 --- a/include/postwin.h +++ b/include/postwin.h @@ -34,16 +34,7 @@ #undef WB_LEFT #undef WB_RIGHT -#ifdef GetObject #undef GetObject -#ifdef UNICODE -#define WIN_GetObject GetObjectW -#else -#define WIN_GetObject GetObjectA -#endif -#else -#define WIN_GetObject GetObject -#endif #ifdef SetPrinter #undef SetPrinter -- cgit