vcl/osx/salprn.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 4e62ac053bf6cb094130f3ba914b6f4485d3e0a2 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Mar 3 22:18:29 2014 +0100 Use cstdlib std::abs instead of stdlib.h abs: Mac-specific code Change-Id: I919b1a931145a49c32ec601109be083b49f10f7b diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 751570a..dfaaf7e 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -39,6 +39,7 @@ #include "com/sun/star/uno/Sequence.hxx" #include <algorithm> +#include <cstdlib> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits