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
848adf43
Kaydet (Commit)
848adf43
authored
Ara 08, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fastparser: Redundant check after assert
Change-Id: Ibc56102831d4d36392bea4e4e088e207cef99429
üst
6d10a42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
fastparser.cxx
sax/source/fastparser/fastparser.cxx
+4
-7
No files found.
sax/source/fastparser/fastparser.cxx
Dosyayı görüntüle @
848adf43
...
@@ -623,15 +623,12 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const OUString&
...
@@ -623,15 +623,12 @@ void FastSaxParserImpl::DefineNamespace( const OString& rPrefix, const OUString&
{
{
Entity
&
rEntity
=
getEntity
();
Entity
&
rEntity
=
getEntity
();
assert
(
!
rEntity
.
maNamespaceCount
.
empty
());
// need a context!
assert
(
!
rEntity
.
maNamespaceCount
.
empty
());
// need a context!
if
(
!
rEntity
.
maNamespaceCount
.
empty
()
)
{
sal_uInt32
nOffset
=
rEntity
.
maNamespaceCount
.
top
()
++
;
if
(
rEntity
.
maNamespaceDefines
.
size
()
<=
nOffset
)
sal_uInt32
nOffset
=
rEntity
.
maNamespaceCount
.
top
()
++
;
rEntity
.
maNamespaceDefines
.
resize
(
rEntity
.
maNamespaceDefines
.
size
()
+
64
);
if
(
rEntity
.
maNamespaceDefines
.
size
()
<=
nOffset
)
rEntity
.
maNamespaceDefines
.
resize
(
rEntity
.
maNamespaceDefines
.
size
()
+
64
);
rEntity
.
maNamespaceDefines
[
nOffset
].
reset
(
new
NamespaceDefine
(
rPrefix
,
GetNamespaceToken
(
namespaceURL
),
namespaceURL
)
);
rEntity
.
maNamespaceDefines
[
nOffset
].
reset
(
new
NamespaceDefine
(
rPrefix
,
GetNamespaceToken
(
namespaceURL
),
namespaceURL
)
);
}
}
}
sal_Int32
FastSaxParserImpl
::
GetToken
(
const
xmlChar
*
pName
,
sal_Int32
nameLen
/* = 0 */
)
sal_Int32
FastSaxParserImpl
::
GetToken
(
const
xmlChar
*
pName
,
sal_Int32
nameLen
/* = 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