[Libreoffice-commits] core.git: vcl/inc
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 5 05:42:32 UTC 2021
vcl/inc/unx/printergfx.hxx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 547fac4aae8cf2b36db6b8c9aab5edb3b19799e4
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Sat Apr 3 10:11:17 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Mon Apr 5 07:41:53 2021 +0200
vcl: ColorSpace "enum" to "enum class" used in PrinterColor class
Change-Id: I0faba3ed5ba34e4efb5d9d971197c0f4ab6e3fa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113592
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx
index ff4b51cb04dc..07e16ac9173b 100644
--- a/vcl/inc/unx/printergfx.hxx
+++ b/vcl/inc/unx/printergfx.hxx
@@ -44,7 +44,7 @@ class PrinterColor
{
public:
- enum ColorSpace { eInvalid, eRGB };
+ enum class ColorSpace { eInvalid, eRGB };
private:
@@ -59,24 +59,24 @@ public:
: mnRed(0)
, mnGreen(0)
, mnBlue(0)
- , meColorspace(eInvalid)
+ , meColorspace(ColorSpace::eInvalid)
{}
PrinterColor (sal_uInt16 nRed, sal_uInt16 nGreen,
sal_uInt16 nBlue) :
mnRed (nRed),
mnGreen (nGreen),
mnBlue (nBlue),
- meColorspace (eRGB)
+ meColorspace (ColorSpace::eRGB)
{}
PrinterColor (sal_uInt32 nRGB) :
mnRed ((nRGB & 0x00ff0000) >> 16),
mnGreen ((nRGB & 0x0000ff00) >> 8),
mnBlue ((nRGB & 0x000000ff) ),
- meColorspace (eRGB)
+ meColorspace (ColorSpace::eRGB)
{}
bool Is () const
- { return meColorspace != eInvalid; }
+ { return meColorspace != ColorSpace::eInvalid; }
sal_uInt16 GetRed () const
{ return mnRed; }
@@ -96,7 +96,7 @@ public:
PrinterColor& operator= (sal_uInt32 nRGB)
{
- meColorspace = eRGB;
+ meColorspace = ColorSpace::eRGB;
mnBlue = (nRGB & 0x000000ff);
mnGreen = (nRGB & 0x0000ff00) >> 8;
mnRed = (nRGB & 0x00ff0000) >> 16;
More information about the Libreoffice-commits
mailing list