diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-03 22:18:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-03 22:18:29 +0100 |
commit | 4e62ac053bf6cb094130f3ba914b6f4485d3e0a2 (patch) | |
tree | 8a8b557f4f095cbbf6aaab2f2a762e663dbc2dae /vcl | |
parent | 6d9de6bbe9133bb0c7710489a2ba531d7d43eca6 (diff) |
Use cstdlib std::abs instead of stdlib.h abs: Mac-specific code
Change-Id: I919b1a931145a49c32ec601109be083b49f10f7b
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salprn.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <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; |