summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/GraphicNativeTransform.cxx7
-rw-r--r--vcl/source/filter/jpeg/Exif.cxx10
2 files changed, 8 insertions, 9 deletions
diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx
index d1bb5abb547b..b591217edd91 100644
--- a/vcl/source/filter/GraphicNativeTransform.cxx
+++ b/vcl/source/filter/GraphicNativeTransform.cxx
@@ -38,14 +38,13 @@ GraphicNativeTransform::~GraphicNativeTransform() {}
void GraphicNativeTransform::rotate(Degree10 aInputRotation)
{
// Rotation can be between 0 and 3600
- Degree10 aRotation = aInputRotation % Degree10(3600);
+ Degree10 aRotation = aInputRotation % 3600_deg10;
- if (aRotation == Degree10(0))
+ if (aRotation == 0_deg10)
{
return; // No rotation is needed
}
- else if (aRotation != Degree10(900) && aRotation != Degree10(1800)
- && aRotation != Degree10(2700))
+ else if (aRotation != 900_deg10 && aRotation != 1800_deg10 && aRotation != 2700_deg10)
{
return;
}
diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx
index b8760b63aef7..d23c6025185c 100644
--- a/vcl/source/filter/jpeg/Exif.cxx
+++ b/vcl/source/filter/jpeg/Exif.cxx
@@ -53,17 +53,17 @@ Degree10 Exif::getRotation() const
{
switch(maOrientation) {
case exif::TOP_LEFT:
- return Degree10(0);
+ return 0_deg10;
case exif::BOTTOM_RIGHT:
- return Degree10(1800);
+ return 1800_deg10;
case exif::RIGHT_TOP:
- return Degree10(2700);
+ return 2700_deg10;
case exif::LEFT_BOTTOM:
- return Degree10(900);
+ return 900_deg10;
default:
break;
}
- return Degree10(0);
+ return 0_deg10;
}
bool Exif::read(SvStream& rStream)