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
4b4a870b
Kaydet (Commit)
4b4a870b
authored
Ock 06, 2014
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid some memcpy when not necessary
Change-Id: I9b838fc8392bc61be4ed911fb1423a1e97af2356
üst
52263eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
WPXSvStream.cxx
writerperfect/source/common/WPXSvStream.cxx
+2
-4
No files found.
writerperfect/source/common/WPXSvStream.cxx
Dosyayı görüntüle @
4b4a870b
...
@@ -310,9 +310,7 @@ const unsigned char *WPXSvInputStream::read(unsigned long numBytes, unsigned lon
...
@@ -310,9 +310,7 @@ const unsigned char *WPXSvInputStream::read(unsigned long numBytes, unsigned lon
mpImpl
->
mnReadBufferLength
=
mpImpl
->
mnLength
-
curpos
;
mpImpl
->
mnReadBufferLength
=
mpImpl
->
mnLength
-
curpos
;
}
}
else
else
mpImpl
->
mnReadBufferLength
=
numBytes
;
return
mpImpl
->
read
(
numBytes
,
numBytesRead
);
mpImpl
->
seek
((
long
)
curpos
);
mpImpl
->
mpReadBuffer
=
new
unsigned
char
[
mpImpl
->
mnReadBufferLength
];
mpImpl
->
mpReadBuffer
=
new
unsigned
char
[
mpImpl
->
mnReadBufferLength
];
unsigned
long
tmpNumBytes
(
0
);
unsigned
long
tmpNumBytes
(
0
);
...
@@ -360,7 +358,7 @@ int WPXSvInputStream::seek(long offset, WPX_SEEK_TYPE seekType)
...
@@ -360,7 +358,7 @@ int WPXSvInputStream::seek(long offset, WPX_SEEK_TYPE seekType)
if
(
tmpOffset
<
mpImpl
->
tell
()
&&
(
unsigned
long
)
tmpOffset
>=
(
unsigned
long
)
mpImpl
->
tell
()
-
mpImpl
->
mnReadBufferLength
)
if
(
tmpOffset
<
mpImpl
->
tell
()
&&
(
unsigned
long
)
tmpOffset
>=
(
unsigned
long
)
mpImpl
->
tell
()
-
mpImpl
->
mnReadBufferLength
)
{
{
mpImpl
->
mnReadBufferPos
=
(
unsigned
long
)(
tmpOffset
+
(
long
)
mpImpl
->
mnReadBufferLength
-
(
long
)
mpImpl
->
tell
());
mpImpl
->
mnReadBufferPos
=
(
unsigned
long
)(
tmpOffset
+
(
long
)
mpImpl
->
mnReadBufferLength
-
(
long
)
mpImpl
->
tell
());
return
0
;
return
retVal
;
}
}
mpImpl
->
invalidateReadBuffer
();
mpImpl
->
invalidateReadBuffer
();
...
...
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