summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-12 16:10:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-16 13:46:01 +0100
commit36b3b357fe2a882db6a5f5a006239e16200fb847 (patch)
treedb2a4887f6ef25dcaf3fd2c00998b6e3645592e7 /include
parentdbbb5569b45ede85af7f2ee53496f28762cbf371 (diff)
replace std::min(std::max()) with std::clamp
Change-Id: I76e34e8020d98292e8ffde387542b7029f85a42d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105754 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/oox/helper/helper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx
index 9d6befb90c54..da28c88b9e4b 100644
--- a/include/oox/helper/helper.hxx
+++ b/include/oox/helper/helper.hxx
@@ -108,7 +108,7 @@ const sal_Int8 API_ESCAPEHEIGHT_DEFAULT = 58; ///< Relative character
template< typename ReturnType, typename Type >
inline ReturnType getLimitedValue( Type nValue, Type nMin, Type nMax )
{
- return static_cast< ReturnType >( ::std::min( ::std::max( nValue, nMin ), nMax ) );
+ return static_cast< ReturnType >( ::std::clamp( nValue, nMin, nMax ) );
}
template< typename ReturnType, typename Type >