From 4e62ac053bf6cb094130f3ba914b6f4485d3e0a2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 3 Mar 2014 22:18:29 +0100 Subject: Use cstdlib std::abs instead of stdlib.h abs: Mac-specific code Change-Id: I919b1a931145a49c32ec601109be083b49f10f7b --- vcl/osx/salprn.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 751570a6987f..dfaaf7eb8bca 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -39,6 +39,7 @@ #include "com/sun/star/uno/Sequence.hxx" #include +#include using namespace vcl; using namespace com::sun::star; @@ -725,8 +726,8 @@ const PaperInfo* AquaSalInfoPrinter::matchPaper( long i_nWidth, long i_nHeight, { for( size_t i = 0; i < m_aPaperFormats.size(); i++ ) { - if( abs( m_aPaperFormats[i].getWidth() - i_nWidth ) < 50 && - abs( m_aPaperFormats[i].getHeight() - i_nHeight ) < 50 ) + if( std::abs( m_aPaperFormats[i].getWidth() - i_nWidth ) < 50 && + std::abs( m_aPaperFormats[i].getHeight() - i_nHeight ) < 50 ) { pMatch = &m_aPaperFormats[i]; return pMatch; -- cgit