diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-06-17 20:15:38 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-06-19 16:24:14 +0000 |
commit | a6ab2c0f7354ddf3a1aa3e565e184bccfc21b839 (patch) | |
tree | 45c81f43e29cfd8a16afef7227d116186a862854 /sc | |
parent | f82d4c9aca65b89fb7243857ed55665ca88c496e (diff) |
Use explicit type in std::max
Change-Id: I777d5387d9377f0f8032d68a9191a7fa110287c5
Reviewed-on: https://gerrit.libreoffice.org/26477
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index cc6c733694a9..ea1bc5cd84c6 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1077,8 +1077,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, nTopLeftTileCol = std::min(nTopLeftTileCol, (sal_Int32)nEndCol); nTopLeftTileRow = std::min(nTopLeftTileRow, (sal_Int32)nEndRow); - nTopLeftTileCol = std::max(nTopLeftTileCol, 0); - nTopLeftTileRow = std::max(nTopLeftTileRow, 0); + nTopLeftTileCol = std::max<sal_Int32>(nTopLeftTileCol, 0); + nTopLeftTileRow = std::max<sal_Int32>(nTopLeftTileRow, 0); nBottomRightTileCol = std::min(nBottomRightTileCol, (sal_Int32)nEndCol); nBottomRightTileRow = std::min(nBottomRightTileRow, (sal_Int32)nEndRow); nTopLeftTileColOrigin = nTopLeftTileColOrigin * TWIPS_PER_PIXEL; |