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
b7c79fc2
Kaydet (Commit)
b7c79fc2
authored
Mar 12, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sax: replace Min/Max macros with std::max
üst
7191b52c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
xml2utf.hxx
sax/inc/xml2utf.hxx
+0
-4
xml2utf.cxx
sax/source/expatwrap/xml2utf.cxx
+5
-3
No files found.
sax/inc/xml2utf.hxx
Dosyayı görüntüle @
b7c79fc2
...
...
@@ -29,10 +29,6 @@
#include <sax/dllapi.h>
// TODO: Woher?
#define Max( a, b ) (((a)>(b)) ? (a) : (b) )
#define Min( a, b ) (((a)<(b)) ? (a) : (b) )
/*
*
* Text2UnicodeConverter
...
...
sax/source/expatwrap/xml2utf.cxx
Dosyayı görüntüle @
b7c79fc2
...
...
@@ -27,12 +27,13 @@
************************************************************************/
#include <string.h>
#include <algorithm>
#include <sal/types.h>
#include <rtl/textenc.h>
#include <rtl/tencinfo.h>
#include <com/sun/star/io/XInputStream.hpp>
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -54,8 +55,9 @@ sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_In
throw
NotConnectedException
();
}
if
(
!
m_bStarted
)
{
nMaxToRead
=
Max
(
512
,
nMaxToRead
);
// it should be possible to find the encoding attribute
// within the first 512 bytes == 128 chars in UCS-4
// it should be possible to find the encoding attribute
// within the first 512 bytes == 128 chars in UCS-4
nMaxToRead
=
::
std
::
max
(
512
,
nMaxToRead
);
}
sal_Int32
nRead
;
...
...
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