Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4e62ac05
Kaydet (Commit)
4e62ac05
authored
Mar 03, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use cstdlib std::abs instead of stdlib.h abs: Mac-specific code
Change-Id: I919b1a931145a49c32ec601109be083b49f10f7b
üst
6d9de6bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
salprn.cxx
vcl/osx/salprn.cxx
+3
-2
No files found.
vcl/osx/salprn.cxx
Dosyayı görüntüle @
4e62ac05
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include "com/sun/star/uno/Sequence.hxx"
#include "com/sun/star/uno/Sequence.hxx"
#include <algorithm>
#include <algorithm>
#include <cstdlib>
using
namespace
vcl
;
using
namespace
vcl
;
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
...
@@ -725,8 +726,8 @@ const PaperInfo* AquaSalInfoPrinter::matchPaper( long i_nWidth, long i_nHeight,
...
@@ -725,8 +726,8 @@ const PaperInfo* AquaSalInfoPrinter::matchPaper( long i_nWidth, long i_nHeight,
{
{
for
(
size_t
i
=
0
;
i
<
m_aPaperFormats
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
m_aPaperFormats
.
size
();
i
++
)
{
{
if
(
abs
(
m_aPaperFormats
[
i
].
getWidth
()
-
i_nWidth
)
<
50
&&
if
(
std
::
abs
(
m_aPaperFormats
[
i
].
getWidth
()
-
i_nWidth
)
<
50
&&
abs
(
m_aPaperFormats
[
i
].
getHeight
()
-
i_nHeight
)
<
50
)
std
::
abs
(
m_aPaperFormats
[
i
].
getHeight
()
-
i_nHeight
)
<
50
)
{
{
pMatch
=
&
m_aPaperFormats
[
i
];
pMatch
=
&
m_aPaperFormats
[
i
];
return
pMatch
;
return
pMatch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment