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
d26052bd
Kaydet (Commit)
d26052bd
authored
Mar 11, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttribouteOutput::m_pHyperlinkAttrList: use unique_ptr
Change-Id: I7da23e7b7d35f2cf46c7dfbc8f251da2205925bb
üst
8e8a97fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+2
-5
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
d26052bd
...
...
@@ -1119,10 +1119,9 @@ void DocxAttributeOutput::EndRun()
// Start the hyperlink after the fields separators or we would generate invalid file
if ( m_pHyperlinkAttrList )
{
XFastAttributeListRef xAttrList ( m_pHyperlinkAttrList );
XFastAttributeListRef xAttrList ( m_pHyperlinkAttrList
.release()
);
m_pSerializer->startElementNS( XML_w, XML_hyperlink, xAttrList );
m_pHyperlinkAttrList = NULL;
m_startedHyperlink = true;
m_nHyperLinkCount++;
}
...
...
@@ -2221,7 +2220,7 @@ bool DocxAttributeOutput::StartURL( const OUString& rUrl, const OUString& rTarge
else
{
// Output a hyperlink XML element
m_pHyperlinkAttrList
= m_pSerializer->createAttrList(
);
m_pHyperlinkAttrList
.reset(m_pSerializer->createAttrList()
);
if ( !bBookmarkOnly )
{
...
...
@@ -8279,7 +8278,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
: m_rExport( rExport ),
m_pSerializer( pSerializer ),
m_rDrawingML( *pDrawingML ),
m_pHyperlinkAttrList( NULL ),
m_bEndCharSdt(false),
m_bStartedCharSdt(false),
m_bStartedParaSdt(false),
...
...
@@ -8349,7 +8347,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
DocxAttributeOutput::~DocxAttributeOutput()
{
delete m_pHyperlinkAttrList, m_pHyperlinkAttrList = NULL;
delete m_pColorAttrList, m_pColorAttrList = NULL;
delete m_pBackgroundAttrList, m_pBackgroundAttrList = NULL;
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
d26052bd
...
...
@@ -727,7 +727,7 @@ private:
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pCharLangAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pSectionSpacingAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pParagraphSpacingAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pHyperlinkAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pHyperlinkAttrList
;
/// If the current SDT around runs should be ended before the current run.
bool
m_bEndCharSdt
;
/// If an SDT around runs is currently open.
...
...
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