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 /oox | |
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 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 491f79e6090f..5f9a35b41ac5 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -4113,7 +4113,7 @@ void ChartExport::exportMarker(const Reference< XPropertySet >& xPropSet) nSize = nSize/250.0*7.0 + 1; // just guessed based on some test cases, //the value is always 1 less than the actual value. - nSize = std::min<sal_Int32>( 72, std::max<sal_Int32>( 2, nSize ) ); + nSize = std::clamp( int(nSize), 2, 72 ); pFS->singleElement(FSNS(XML_c, XML_size), XML_val, OString::number(nSize)); pFS->startElement(FSNS(XML_c, XML_spPr)); |