summaryrefslogtreecommitdiff
path: root/slideshow/source
diff options
context:
space:
mode:
authorYukio Siraichi <yukio.siraichi@gmail.com>2020-03-09 23:22:20 +0900
committerMike Kaganski <mike.kaganski@collabora.com>2020-03-12 10:34:46 +0100
commit8e173a965d5684372e3fe0ee3d3599032bcb86c2 (patch)
tree7cd8282e599418b9c5cd1e3667fcba04c787b153 /slideshow/source
parent056ba01ee95db5dfd7df362e72bb418893c4c530 (diff)
tdf#130977 replace `rtl::math::isFinite` with `std::isfinite`.
- make all calls look like `std::isfinite`. - change the comments referring `rtl::math::isFinite`. Change-Id: I0cde9ceb9f20150467b454cddde5e62003cfde1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90234 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'slideshow/source')
-rw-r--r--slideshow/source/engine/shapeattributelayer.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/slideshow/source/engine/shapeattributelayer.cxx b/slideshow/source/engine/shapeattributelayer.cxx
index d96952f780ca..a688f479caec 100644
--- a/slideshow/source/engine/shapeattributelayer.cxx
+++ b/slideshow/source/engine/shapeattributelayer.cxx
@@ -269,7 +269,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setWidth( const double& rNewWidth )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewWidth),
+ ENSURE_OR_THROW( std::isfinite(rNewWidth),
"ShapeAttributeLayer::setWidth(): Invalid width" );
maSize.setX( rNewWidth );
@@ -293,7 +293,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setHeight( const double& rNewHeight )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewHeight),
+ ENSURE_OR_THROW( std::isfinite(rNewHeight),
"ShapeAttributeLayer::setHeight(): Invalid height" );
maSize.setY( rNewHeight );
@@ -303,8 +303,8 @@ namespace slideshow::internal
void ShapeAttributeLayer::setSize( const ::basegfx::B2DSize& rNewSize )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewSize.getX()) &&
- ::rtl::math::isFinite(rNewSize.getY()),
+ ENSURE_OR_THROW( std::isfinite(rNewSize.getX()) &&
+ std::isfinite(rNewSize.getY()),
"ShapeAttributeLayer::setSize(): Invalid size" );
maSize = rNewSize;
@@ -328,7 +328,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setPosX( const double& rNewX )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewX),
+ ENSURE_OR_THROW( std::isfinite(rNewX),
"ShapeAttributeLayer::setPosX(): Invalid position" );
maPosition.setX( rNewX );
@@ -352,7 +352,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setPosY( const double& rNewY )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewY),
+ ENSURE_OR_THROW( std::isfinite(rNewY),
"ShapeAttributeLayer::setPosY(): Invalid position" );
maPosition.setY( rNewY );
@@ -383,7 +383,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setRotationAngle( const double& rNewAngle )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewAngle),
+ ENSURE_OR_THROW( std::isfinite(rNewAngle),
"ShapeAttributeLayer::setRotationAngle(): Invalid angle" );
mnRotationAngle = rNewAngle;
@@ -406,7 +406,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setShearXAngle( const double& rNewAngle )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewAngle),
+ ENSURE_OR_THROW( std::isfinite(rNewAngle),
"ShapeAttributeLayer::setShearXAngle(): Invalid angle" );
mnShearXAngle = rNewAngle;
@@ -429,7 +429,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setShearYAngle( const double& rNewAngle )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewAngle),
+ ENSURE_OR_THROW( std::isfinite(rNewAngle),
"ShapeAttributeLayer::setShearYAngle(): Invalid angle" );
mnShearYAngle = rNewAngle;
@@ -452,7 +452,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setAlpha( const double& rNewValue )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewValue),
+ ENSURE_OR_THROW( std::isfinite(rNewValue),
"ShapeAttributeLayer::setAlpha(): Invalid alpha" );
mnAlpha = rNewValue;
@@ -751,7 +751,7 @@ namespace slideshow::internal
void ShapeAttributeLayer::setCharScale( const double& rNewHeight )
{
- ENSURE_OR_THROW( ::rtl::math::isFinite(rNewHeight),
+ ENSURE_OR_THROW( std::isfinite(rNewHeight),
"ShapeAttributeLayer::setCharScale(): Invalid height" );
mnCharScale = rNewHeight;