diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-12 16:10:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-16 13:46:01 +0100 |
commit | 36b3b357fe2a882db6a5f5a006239e16200fb847 (patch) | |
tree | db2a4887f6ef25dcaf3fd2c00998b6e3645592e7 /sw | |
parent | dbbb5569b45ede85af7f2ee53496f28762cbf371 (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 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index c389b4d027f7..3bd8b721574f 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -3049,7 +3049,7 @@ namespace sal_uInt16 lcl_BoundListLevel(const int nActualLevel) { - return static_cast<sal_uInt16>( std::min( std::max(nActualLevel, 0), MAXLEVEL-1 ) ); + return static_cast<sal_uInt16>( std::clamp( nActualLevel, 0, MAXLEVEL-1 ) ); } } |