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
4db5b17c
Kaydet (Commit)
4db5b17c
authored
Şub 13, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sax: convert some legacy assertions
Change-Id: I3b4f1caa2c2d7a0fd88ea53bf05d01b2c7cc115a
üst
ed09e6b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
log-areas.dox
sal/inc/sal/log-areas.dox
+1
-0
sax_expat.cxx
sax/source/expatwrap/sax_expat.cxx
+3
-3
fastparser.cxx
sax/source/fastparser/fastparser.cxx
+7
-8
No files found.
sal/inc/sal/log-areas.dox
Dosyayı görüntüle @
4db5b17c
...
...
@@ -237,6 +237,7 @@ certain functionality.
@li @c linguistic
@li @c oox
@li @c rsc
@li @c sax
@li @c shell
@li @c stoc
@li @c svx
...
...
sax/source/expatwrap/sax_expat.cxx
Dosyayı görüntüle @
4db5b17c
...
...
@@ -794,7 +794,7 @@ void SaxExpatParser_Impl::callbackStartElement( void *pvThis ,
pImpl
->
pAttrList
->
clear
();
while
(
awAttributes
[
i
]
)
{
OSL_ASSERT
(
awAttributes
[
i
+
1
]
);
assert
(
awAttributes
[
i
+
1
]
);
pImpl
->
pAttrList
->
addAttribute
(
XML_CHAR_TO_OUSTRING
(
awAttributes
[
i
]
)
,
pImpl
->
sCDATA
,
// expat doesn't know types
...
...
@@ -853,10 +853,10 @@ void SaxExpatParser_Impl::callbackEntityDecl(
{
SaxExpatParser_Impl
*
pImpl
=
((
SaxExpatParser_Impl
*
)
pvThis
);
if
(
value
)
{
// value != 0 means internal entity
OSL_TRACE
(
"SaxExpatParser: internal entity declaration, stopping"
);
SAL_INFO
(
"sax"
,
"SaxExpatParser: internal entity declaration, stopping"
);
XML_StopParser
(
pImpl
->
getEntity
().
pParser
,
XML_FALSE
);
pImpl
->
exception
=
SAXParseException
(
::
rtl
::
OUString
(
"SaxExpatParser: internal entity declaration, stopping"
)
,
"SaxExpatParser: internal entity declaration, stopping"
,
0
,
Any
(),
pImpl
->
rDocumentLocator
->
getPublicId
(),
pImpl
->
rDocumentLocator
->
getSystemId
(),
...
...
sax/source/fastparser/fastparser.cxx
Dosyayı görüntüle @
4db5b17c
...
...
@@ -235,7 +235,7 @@ void FastSaxParser::pushContext()
void
FastSaxParser
::
popContext
()
{
Entity
&
rEntity
=
getEntity
();
OSL_ENSURE
(
!
rEntity
.
maContextStack
.
empty
(),
"sax::FastSaxParser::popContext(), pop without push?"
);
assert
(
!
rEntity
.
maContextStack
.
empty
());
// pop without push?
if
(
!
rEntity
.
maContextStack
.
empty
()
)
rEntity
.
maContextStack
.
pop
();
}
...
...
@@ -245,7 +245,7 @@ void FastSaxParser::popContext()
void
FastSaxParser
::
DefineNamespace
(
const
OString
&
rPrefix
,
const
sal_Char
*
pNamespaceURL
)
{
Entity
&
rEntity
=
getEntity
();
OSL_ENSURE
(
!
rEntity
.
maContextStack
.
empty
(),
"sax::FastSaxParser::DefineNamespace(), I need a context!"
);
assert
(
!
rEntity
.
maContextStack
.
empty
());
// need a context!
if
(
!
rEntity
.
maContextStack
.
empty
()
)
{
sal_uInt32
nOffset
=
rEntity
.
maContextStack
.
top
()
->
mnNamespaceCount
++
;
...
...
@@ -743,7 +743,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char
// #158414# first: get namespaces
for
(
;
awAttributes
[
i
];
i
+=
2
)
{
OSL_ASSERT
(
awAttributes
[
i
+
1
]
);
assert
(
awAttributes
[
i
+
1
]
);
splitName
(
awAttributes
[
i
],
pPrefix
,
nPrefixLen
,
pName
,
nNameLen
);
if
(
nPrefixLen
)
...
...
@@ -853,7 +853,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char
void
FastSaxParser
::
callbackEndElement
(
SAL_UNUSED_PARAMETER
const
XML_Char
*
)
{
Entity
&
rEntity
=
getEntity
();
OSL_ENSURE
(
!
rEntity
.
maContextStack
.
empty
(),
"FastSaxParser::callbackEndElement - no context"
);
assert
(
!
rEntity
.
maContextStack
.
empty
());
// no context?
if
(
!
rEntity
.
maContextStack
.
empty
()
)
{
SaxContextImplPtr
pContext
=
rEntity
.
maContextStack
.
top
();
...
...
@@ -900,18 +900,17 @@ void FastSaxParser::callbackEntityDecl(
SAL_UNUSED_PARAMETER
const
XML_Char
*
/*notationName*/
)
{
if
(
value
)
{
// value != 0 means internal entity
OSL_TRACE
(
"FastSaxParser: internal entity declaration, stopping"
);
SAL_INFO
(
"sax"
,
"FastSaxParser: internal entity declaration, stopping"
);
XML_StopParser
(
getEntity
().
mpParser
,
XML_FALSE
);
getEntity
().
maSavedException
<<=
SAXParseException
(
::
rtl
::
OUString
(
"FastSaxParser: internal entity declaration, stopping"
),
"FastSaxParser: internal entity declaration, stopping"
,
static_cast
<
OWeakObject
*>
(
this
),
Any
(),
mxDocumentLocator
->
getPublicId
(),
mxDocumentLocator
->
getSystemId
(),
mxDocumentLocator
->
getLineNumber
(),
mxDocumentLocator
->
getColumnNumber
()
);
}
else
{
OSL_TRACE
(
"FastSaxParser: ignoring external entity declaration"
);
SAL_INFO
(
"sax"
,
"FastSaxParser: ignoring external entity declaration"
);
}
}
...
...
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