Kaydet (Commit) 4e62ac05 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use cstdlib std::abs instead of stdlib.h abs: Mac-specific code

Change-Id: I919b1a931145a49c32ec601109be083b49f10f7b
üst 6d9de6bb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment