summaryrefslogtreecommitdiff
path: root/include/vcl/sysdata.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-01 21:55:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-02 10:05:29 +0100
commit0c765dedffa2c0ee9e6daeb54d8d477b71a56e61 (patch)
treed105ef19627385cdbd7e43d3194a636e5b22ed25 /include/vcl/sysdata.hxx
parentd6a3212e727f4732cda29c646e7fca51e84e78b3 (diff)
Better types for SystemGraphicsData::hDrawable, cairo::X11SysData::hDrawable
Both apparently only hold X11 Drawable values. But include/vcl/sysdata.hxx does not include the X11 include files that would define Drawable, so use sal_uIntPtr there, which is also used for other similar SystemEnvData and SystemParentData aWindow members there. Change-Id: Ia136ad1937e2009eb409c3ef8cc41dc81bd338a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105156 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r--include/vcl/sysdata.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx
index a792296581e9..3abf92b55640 100644
--- a/include/vcl/sysdata.hxx
+++ b/include/vcl/sysdata.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_VCL_SYSDATA_HXX
#include <sal/types.h>
-#include <tools/long.hxx>
#ifdef MACOSX
// predeclare the native classes to avoid header/include problems
@@ -138,7 +137,7 @@ struct SystemGraphicsData
CGContextRef rCGContext; // CoreGraphics graphic context
#elif defined( UNX )
void* pDisplay; // the relevant display connection
- tools::Long hDrawable; // a drawable
+ sal_uIntPtr hDrawable; // a drawable
void* pVisual; // the visual in use
int nScreen; // the current screen of the drawable
void* pXRenderFormat; // render format for drawable