vcl/inc/unx/printergfx.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit 547fac4aae8cf2b36db6b8c9aab5edb3b19799e4 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Sat Apr 3 10:11:17 2021 +0900 Commit: Tomaž Vajngerl <qui...@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 <qui...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits