diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-23 14:09:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-24 12:00:07 +0100 |
commit | 88c0e46e139fe44f7f2a6f9fbaa6b3fd7a827a8d (patch) | |
tree | f41e0a3e856a8dd9dba6bbac7d08e62518b53420 /include/vcl | |
parent | 17aea7c41c95186c03c173a8c6f26cd2ebce4c54 (diff) |
custom literal for Degree10
Change-Id: Id13869138a622e62d9ffebf2c89bddccda6aff01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108238
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/GraphicAttributes.hxx | 2 | ||||
-rw-r--r-- | include/vcl/cursor.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/GraphicAttributes.hxx b/include/vcl/GraphicAttributes.hxx index 5216d2934166..4fca512956c6 100644 --- a/include/vcl/GraphicAttributes.hxx +++ b/include/vcl/GraphicAttributes.hxx @@ -108,7 +108,7 @@ public: { return (mnLeftCrop != 0 || mnTopCrop != 0 || mnRightCrop != 0 || mnBottomCrop != 0); } - bool IsRotated() const { return ((mnRotate10 % Degree10(3600)) != Degree10(0)); } + bool IsRotated() const { return ((mnRotate10 % 3600_deg10) != 0_deg10); } bool IsTransparent() const { return (mcTransparency > 0); } bool IsAdjusted() const { diff --git a/include/vcl/cursor.hxx b/include/vcl/cursor.hxx index ff66326d90b9..b6adf4926ed5 100644 --- a/include/vcl/cursor.hxx +++ b/include/vcl/cursor.hxx @@ -87,7 +87,7 @@ public: tools::Long GetWidth() const { return maSize.Width(); } tools::Long GetHeight() const { return maSize.Height(); } - void SetOrientation( Degree10 nOrientation = Degree10(0) ); + void SetOrientation( Degree10 nOrientation = 0_deg10 ); void SetDirection( CursorDirection nDirection = CursorDirection::NONE ); |