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
787ed0a2
Kaydet (Commit)
787ed0a2
authored
Tem 30, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid memory leak
Change-Id: I9ac97c4e5c7b01b5e05cb1132c0d245f5843799e
üst
e644bb59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wrapper_gpl.cxx
sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+5
-3
No files found.
sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
Dosyayı görüntüle @
787ed0a2
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <boost/scoped_ptr.hpp>
#include "pdfioutdev_gpl.hxx"
#include "pdfioutdev_gpl.hxx"
#ifdef WNT
#ifdef WNT
# include <io.h>
# include <io.h>
...
@@ -142,7 +144,7 @@ int main(int argc, char **argv)
...
@@ -142,7 +144,7 @@ int main(int argc, char **argv)
}
}
else
else
{
{
pdfi
::
PDFOutDev
*
pOutDev
(
new
pdfi
::
PDFOutDev
(
&
aDoc
)
);
boost
::
scoped_ptr
<
pdfi
::
PDFOutDev
>
pOutDev
(
new
pdfi
::
PDFOutDev
(
&
aDoc
)
);
// tell receiver early - needed for proper progress calculation
// tell receiver early - needed for proper progress calculation
pOutDev
->
setPageNum
(
aDoc
.
getNumPages
()
);
pOutDev
->
setPageNum
(
aDoc
.
getNumPages
()
);
...
@@ -154,12 +156,12 @@ int main(int argc, char **argv)
...
@@ -154,12 +156,12 @@ int main(int argc, char **argv)
const
int
nPages
=
aDoc
.
getNumPages
();
const
int
nPages
=
aDoc
.
getNumPages
();
for
(
int
i
=
1
;
i
<=
nPages
;
++
i
)
for
(
int
i
=
1
;
i
<=
nPages
;
++
i
)
{
{
aDoc
.
displayPage
(
pOutDev
,
aDoc
.
displayPage
(
pOutDev
.
get
()
,
i
,
i
,
PDFI_OUTDEV_RESOLUTION
,
PDFI_OUTDEV_RESOLUTION
,
PDFI_OUTDEV_RESOLUTION
,
PDFI_OUTDEV_RESOLUTION
,
0
,
gTrue
,
gTrue
,
gTrue
);
0
,
gTrue
,
gTrue
,
gTrue
);
aDoc
.
processLinks
(
pOutDev
,
i
);
aDoc
.
processLinks
(
pOutDev
.
get
()
,
i
);
}
}
}
}
return
0
;
return
0
;
...
...
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