diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-03-04 13:19:26 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-03-05 08:38:23 +0100 |
commit | b677a4cc3eeb6eea8bb34aff0b06afe987931e6f (patch) | |
tree | de3ed8acdb2f56f5948f0a0b91bc85fef413b1bd /vcl | |
parent | 5c44f44147b5490cc792949989f4baba2137beed (diff) |
vcl: put first and last native type into GfxLinkType enum
Until now we had define GFX_LINK_FIRST_NATIVE_ID and define
GFX_LINK_LAST_NATIVE_ID which pointed to the first and last type
n the GfxLinkType which represented the native type. A more
elegant way to solve this is to assign an alias to the first and
last value. So now we have "NativeFirst" and "NativeLast" defined
in the GfxLinkType enum instead.
Change-Id: I5613a1b544fc7ae4f8b884df94c6fa4e2fb322d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89982
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/gfxlink.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx index 1a383de72ccc..186961c2ac7d 100644 --- a/vcl/source/gdi/gfxlink.cxx +++ b/vcl/source/gdi/gfxlink.cxx @@ -71,7 +71,7 @@ bool GfxLink::operator==( const GfxLink& rGfxLink ) const bool GfxLink::IsNative() const { - return( meType >= GFX_LINK_FIRST_NATIVE_ID && meType <= GFX_LINK_LAST_NATIVE_ID ); + return meType >= GfxLinkType::NativeFirst && meType <= GfxLinkType::NativeLast; } |