[API CHANGE] Retire SAL_ABS
which had served since d441fa1f8cc0a17a2bc166bf2f2a44f76b83a773; we now have polymorhpic std::abs. Change-Id: Ibe48ac51508f7d9f5a44d712550237db7f553df3 Reviewed-on: https://gerrit.libreoffice.org/32225 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
c829e01e97
commit
b55c205460
@@ -52,10 +52,6 @@
|
||||
# define SAL_BOUND(x,l,h) ((x) <= (l) ? (l) : ((x) >= (h) ? (h) : (x)))
|
||||
#endif
|
||||
|
||||
#ifndef SAL_ABS
|
||||
# define SAL_ABS(a) (((a) < 0) ? (-(a)) : (a))
|
||||
#endif
|
||||
|
||||
#ifndef SAL_STRINGIFY
|
||||
# define SAL_STRINGIFY_ARG(x) #x
|
||||
# define SAL_STRINGIFY(x) SAL_STRINGIFY_ARG(x)
|
||||
|
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <rtl/crc.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <tools/stream.hxx>
|
||||
#include <tools/vcompat.hxx>
|
||||
@@ -611,7 +612,7 @@ bool GDIMetaFile::Mirror( BmpMirrorFlags nMirrorFlags )
|
||||
|
||||
if( nMirrorFlags & BmpMirrorFlags::Horizontal )
|
||||
{
|
||||
nMoveX = SAL_ABS( aOldPrefSize.Width() ) - 1;
|
||||
nMoveX = std::abs( aOldPrefSize.Width() ) - 1;
|
||||
fScaleX = -1.0;
|
||||
}
|
||||
else
|
||||
@@ -622,7 +623,7 @@ bool GDIMetaFile::Mirror( BmpMirrorFlags nMirrorFlags )
|
||||
|
||||
if( nMirrorFlags & BmpMirrorFlags::Vertical )
|
||||
{
|
||||
nMoveY = SAL_ABS( aOldPrefSize.Height() ) - 1;
|
||||
nMoveY = std::abs( aOldPrefSize.Height() ) - 1;
|
||||
fScaleY = -1.0;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user