summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility
diff options
context:
space:
mode:
Diffstat (limited to 'i18nutil/source/utility')
-rw-r--r--i18nutil/source/utility/paper.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 1b87b37871c9..4e94f9b36a14 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -173,10 +173,10 @@ void PaperInfo::doSloppyFit()
{
if (i == PAPER_USER) continue;
- tools::Long lDiffW = labs(aDinTab[i].m_nWidth - m_nPaperWidth);
- tools::Long lDiffH = labs(aDinTab[i].m_nHeight - m_nPaperHeight);
- tools::Long lFlipDiffW = labs(aDinTab[i].m_nHeight - m_nPaperWidth);
- tools::Long lFlipDiffH = labs(aDinTab[i].m_nWidth - m_nPaperHeight);
+ tools::Long lDiffW = std::abs(aDinTab[i].m_nWidth - m_nPaperWidth);
+ tools::Long lDiffH = std::abs(aDinTab[i].m_nHeight - m_nPaperHeight);
+ tools::Long lFlipDiffW = std::abs(aDinTab[i].m_nHeight - m_nPaperWidth);
+ tools::Long lFlipDiffH = std::abs(aDinTab[i].m_nWidth - m_nPaperHeight);
if ( (lDiffW < MAXSLOPPY && lDiffH < MAXSLOPPY) ||
(lFlipDiffW < MAXSLOPPY && lFlipDiffH < MAXSLOPPY) )
@@ -193,8 +193,8 @@ bool PaperInfo::sloppyEqual(const PaperInfo &rOther) const
{
return
(
- (labs(m_nPaperWidth - rOther.m_nPaperWidth) < MAXSLOPPY) &&
- (labs(m_nPaperHeight - rOther.m_nPaperHeight) < MAXSLOPPY)
+ (std::abs(m_nPaperWidth - rOther.m_nPaperWidth) < MAXSLOPPY) &&
+ (std::abs(m_nPaperHeight - rOther.m_nPaperHeight) < MAXSLOPPY)
);
}
@@ -205,11 +205,11 @@ tools::Long PaperInfo::sloppyFitPageDimension(tools::Long nDimension)
if (i == PAPER_USER) continue;
tools::Long lDiff;
- lDiff = labs(aDinTab[i].m_nWidth - nDimension);
+ lDiff = std::abs(aDinTab[i].m_nWidth - nDimension);
if ( lDiff < MAXSLOPPY )
return aDinTab[i].m_nWidth;
- lDiff = labs(aDinTab[i].m_nHeight - nDimension);
+ lDiff = std::abs(aDinTab[i].m_nHeight - nDimension);
if ( lDiff < MAXSLOPPY )
return aDinTab[i].m_nHeight;
}