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
c2ca1152
Kaydet (Commit)
c2ca1152
authored
Mar 25, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput::m_pParagraphSdtPrTokenAttributes: use std::unique_ptr
Change-Id: Ibc8e21c5572c06fc929c308d519601d2ea0c830d
üst
9110d872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+4
-8
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+2
-2
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
c2ca1152
...
...
@@ -597,7 +597,7 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT
void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken,
std::unique_ptr<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren,
::sax_fastparser::FastAttributeList*
& pSdtPrTokenAttributes,
std::unique_ptr<sax_fastparser::FastAttributeList>
& pSdtPrTokenAttributes,
std::unique_ptr<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs,
OUString& rSdtPrAlias,
bool bPara )
...
...
@@ -618,9 +618,8 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken,
m_pSerializer->startElement( nSdtPrToken, FSEND );
else
{
XFastAttributeListRef xAttrList(pSdtPrTokenAttributes);
XFastAttributeListRef xAttrList(pSdtPrTokenAttributes
.release()
);
m_pSerializer->startElement(nSdtPrToken, xAttrList);
pSdtPrTokenAttributes = 0;
}
if (nSdtPrToken == FSNS( XML_w, XML_date ) || nSdtPrToken == FSNS( XML_w, XML_docPartObj ) || nSdtPrToken == FSNS( XML_w, XML_docPartList ) || nSdtPrToken == FSNS( XML_w14, XML_checkbox )) {
...
...
@@ -640,9 +639,8 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken,
m_pSerializer->singleElement( nSdtPrToken, FSEND );
else
{
XFastAttributeListRef xAttrList(pSdtPrTokenAttributes);
XFastAttributeListRef xAttrList(pSdtPrTokenAttributes
.release()
);
m_pSerializer->singleElement(nSdtPrToken, xAttrList);
pSdtPrTokenAttributes = 0;
}
}
...
...
@@ -1175,7 +1173,7 @@ void DocxAttributeOutput::EndRun()
// (so on export sdt blocks are never nested ATM)
if ( !m_bAnchorLinkedToNode && !m_bStartedCharSdt )
{
::sax_fastparser::FastAttributeList* pRunSdtPrTokenAttributes = 0
;
std::unique_ptr<sax_fastparser::FastAttributeList> pRunSdtPrTokenAttributes
;
WriteSdtBlock( m_nRunSdtPrToken, m_pRunSdtPrTokenChildren, pRunSdtPrTokenAttributes, m_pRunSdtPrDataBindingAttrs, m_aRunSdtPrAlias, /*bPara=*/false );
}
else
...
...
@@ -8317,7 +8315,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_nParaAfterSpacing(0),
m_setFootnote(false)
, m_nParagraphSdtPrToken(0)
, m_pParagraphSdtPrTokenAttributes(NULL)
, m_nRunSdtPrToken(0)
, m_nStateOfFlyFrame( FLY_NOT_PROCESSED )
, m_bParagraphSdtHasId(false)
...
...
@@ -8327,7 +8324,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
DocxAttributeOutput::~DocxAttributeOutput()
{
delete m_pTableWrt, m_pTableWrt = NULL;
delete m_pParagraphSdtPrTokenAttributes; m_pParagraphSdtPrTokenAttributes = NULL;
}
DocxExport& DocxAttributeOutput::GetExport()
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
c2ca1152
...
...
@@ -705,7 +705,7 @@ private:
void
WriteSdtBlock
(
sal_Int32
&
nSdtPrToken
,
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>&
pSdtPrTokenChildren
,
::
sax_fastparser
::
FastAttributeList
*
&
pSdtPrTokenAttributes
,
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
&
pSdtPrTokenAttributes
,
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>&
pSdtPrDataBindingAttrs
,
OUString
&
rSdtPrAlias
,
bool
bPara
);
...
...
@@ -910,7 +910,7 @@ private:
/// members to control the existence of grabbagged SDT properties in the paragraph
sal_Int32
m_nParagraphSdtPrToken
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pParagraphSdtPrTokenChildren
;
::
sax_fastparser
::
FastAttributeList
*
m_pParagraphSdtPrTokenAttributes
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pParagraphSdtPrTokenAttributes
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pParagraphSdtPrDataBindingAttrs
;
/// members to control the existence of grabbagged SDT properties in the text run
sal_Int32
m_nRunSdtPrToken
;
...
...
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