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
7b2966db
Kaydet (Commit)
7b2966db
authored
Haz 04, 2016
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
nBufSiz can be a non-class local constant
Change-Id: I2a7d32eabd01622261a1163781ac2a8b64bdee3f
üst
30d722a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
inetstrm.hxx
include/tools/inetstrm.hxx
+0
-1
inetstrm.cxx
tools/source/inet/inetstrm.cxx
+9
-3
No files found.
include/tools/inetstrm.hxx
Dosyayı görüntüle @
7b2966db
...
...
@@ -31,7 +31,6 @@ class TOOLS_DLLPUBLIC INetMIMEMessageStream
INetMIMEMessage
*
pSourceMsg
;
bool
bHeaderGenerated
;
sal_uIntPtr
nBufSiz
;
sal_Char
*
pBuffer
;
sal_Char
*
pRead
;
sal_Char
*
pWrite
;
...
...
tools/source/inet/inetstrm.cxx
Dosyayı görüntüle @
7b2966db
...
...
@@ -222,11 +222,17 @@ int INetMIMEMessageStream::GetMsgLine(sal_Char* pData, sal_uIntPtr nSize)
}
}
namespace
{
const
int
BUFFER_SIZE
=
2048
;
}
INetMIMEMessageStream
::
INetMIMEMessageStream
(
INetMIMEMessage
*
pMsg
,
bool
headerGenerated
)
:
pSourceMsg
(
pMsg
),
bHeaderGenerated
(
headerGenerated
),
nBufSiz
(
2048
),
pMsgStrm
(
nullptr
),
pMsgBuffer
(
new
SvMemoryStream
),
pMsgRead
(
nullptr
),
...
...
@@ -237,7 +243,7 @@ INetMIMEMessageStream::INetMIMEMessageStream(
{
assert
(
pMsg
!=
nullptr
);
pMsgBuffer
->
SetStreamCharSet
(
RTL_TEXTENCODING_ASCII_US
);
pBuffer
=
new
sal_Char
[
nBufSiz
];
pBuffer
=
new
sal_Char
[
BUFFER_SIZE
];
pRead
=
pWrite
=
pBuffer
;
}
...
...
@@ -271,7 +277,7 @@ int INetMIMEMessageStream::Read(sal_Char* pData, sal_uIntPtr nSize)
pRead
=
pWrite
=
pBuffer
;
// Read next message line.
int
nRead
=
GetMsgLine
(
pBuffer
,
nBufSiz
);
int
nRead
=
GetMsgLine
(
pBuffer
,
BUFFER_SIZE
);
if
(
nRead
>
0
)
{
// Set read pointer.
...
...
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