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
58b56f8c
Kaydet (Commit)
58b56f8c
authored
Nis 05, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a clearDocumentHandler for null document handler case
Change-Id: I661a2fd5381013056c69b379792560aed7121214
üst
1fd19d3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
fastparser.hxx
include/oox/core/fastparser.hxx
+2
-0
fastparser.cxx
oox/source/core/fastparser.cxx
+7
-0
xmlfilterbase.cxx
oox/source/core/xmlfilterbase.cxx
+1
-1
No files found.
include/oox/core/fastparser.hxx
Dosyayı görüntüle @
58b56f8c
...
...
@@ -78,6 +78,8 @@ public:
void
setDocumentHandler
(
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastDocumentHandler
>&
rxDocHandler
);
void
clearDocumentHandler
();
/** Parses the passed SAX input source.
@param bCloseStream True = closes the stream in the input source after parsing.
@throws css::xml::sax::SAXException
...
...
oox/source/core/fastparser.cxx
Dosyayı görüntüle @
58b56f8c
...
...
@@ -107,6 +107,13 @@ void FastParser::setDocumentHandler( const Reference< XFastDocumentHandler >& rx
mxParser
->
setFastDocumentHandler
(
rxDocHandler
);
}
void
FastParser
::
clearDocumentHandler
()
{
if
(
!
mxParser
.
is
())
return
;
mxParser
->
setFastDocumentHandler
(
nullptr
);
}
void
FastParser
::
parseStream
(
const
InputSource
&
rInputSource
,
bool
bCloseStream
)
{
// guard closing the input stream also when exceptions are thrown
...
...
oox/source/core/xmlfilterbase.cxx
Dosyayı görüntüle @
58b56f8c
...
...
@@ -211,7 +211,7 @@ XmlFilterBase::~XmlFilterBase()
// the following implicit destruction chain of ~XmlFilterBaseImpl, but in that
// case it's member RelationsMap maRelationsMap will be destroyed, but maybe
// still be used by ~FragmentHandler -> crash.
mxImpl
->
maFastParser
.
setDocumentHandler
(
nullptr
);
mxImpl
->
maFastParser
.
clearDocumentHandler
(
);
}
void
XmlFilterBase
::
checkDocumentProperties
(
const
Reference
<
XDocumentProperties
>&
xDocProps
)
...
...
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