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
83f5a88c
Kaydet (Commit)
83f5a88c
authored
Mar 10, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput::m_pParagraphSpacingAttrList: use unique_ptr
Change-Id: I4d8d0ee853e93c8620295e0598de358e66b4f730
üst
7be068e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+4
-8
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
83f5a88c
...
@@ -788,7 +788,7 @@ void DocxAttributeOutput::StartParagraphProperties()
...
@@ -788,7 +788,7 @@ void DocxAttributeOutput::StartParagraphProperties()
void DocxAttributeOutput::InitCollectedParagraphProperties()
void DocxAttributeOutput::InitCollectedParagraphProperties()
{
{
m_pParagraphSpacingAttrList
= NULL
;
m_pParagraphSpacingAttrList
.reset(0)
;
// Write the elements in the spec order
// Write the elements in the spec order
static const sal_Int32 aOrder[] =
static const sal_Int32 aOrder[] =
...
@@ -853,8 +853,7 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties()
...
@@ -853,8 +853,7 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties()
if ( m_pParagraphSpacingAttrList )
if ( m_pParagraphSpacingAttrList )
{
{
XFastAttributeListRef xAttrList( m_pParagraphSpacingAttrList );
XFastAttributeListRef xAttrList( m_pParagraphSpacingAttrList.release() );
m_pParagraphSpacingAttrList = NULL;
m_pSerializer->singleElementNS( XML_w, XML_spacing, xAttrList );
m_pSerializer->singleElementNS( XML_w, XML_spacing, xAttrList );
}
}
...
@@ -2390,9 +2389,8 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData)
...
@@ -2390,9 +2389,8 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData)
// So we need to store the current status of these lists, so that we can revert back to them when
// So we need to store the current status of these lists, so that we can revert back to them when
// we are done exporting the redline attributes.
// we are done exporting the redline attributes.
::sax_fastparser::FastAttributeList *pFlyAttrList_Original = m_rExport.SdrExporter().getFlyAttrList();
::sax_fastparser::FastAttributeList *pFlyAttrList_Original = m_rExport.SdrExporter().getFlyAttrList();
::sax_fastparser::FastAttributeList *pParagraphSpacingAttrList_Original = m_pParagraphSpacingAttrList
;
std::unique_ptr<sax_fastparser::FastAttributeList> pParagraphSpacingAttrList_Original(m_pParagraphSpacingAttrList.release())
;
m_rExport.SdrExporter().setFlyAttrList(NULL);
m_rExport.SdrExporter().setFlyAttrList(NULL);
m_pParagraphSpacingAttrList = NULL;
// Output the redline item set
// Output the redline item set
m_rExport.OutputItemSet( *pChangesSet, true, false, i18n::ScriptType::LATIN, m_rExport.mbExportModeRTF );
m_rExport.OutputItemSet( *pChangesSet, true, false, i18n::ScriptType::LATIN, m_rExport.mbExportModeRTF );
...
@@ -2402,7 +2400,7 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData)
...
@@ -2402,7 +2400,7 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData)
// Revert back the original values that were stored in 'm_rExport.SdrExporter().getFlyAttrList()', 'm_pParagraphSpacingAttrList'
// Revert back the original values that were stored in 'm_rExport.SdrExporter().getFlyAttrList()', 'm_pParagraphSpacingAttrList'
m_rExport.SdrExporter().setFlyAttrList(pFlyAttrList_Original);
m_rExport.SdrExporter().setFlyAttrList(pFlyAttrList_Original);
m_pParagraphSpacingAttrList
= pParagraphSpacingAttrList_Original
;
m_pParagraphSpacingAttrList
.reset(pParagraphSpacingAttrList_Original.release())
;
m_pSerializer->endElementNS( XML_w, XML_pPr );
m_pSerializer->endElementNS( XML_w, XML_pPr );
...
@@ -8281,7 +8279,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
...
@@ -8281,7 +8279,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
: m_rExport( rExport ),
: m_rExport( rExport ),
m_pSerializer( pSerializer ),
m_pSerializer( pSerializer ),
m_rDrawingML( *pDrawingML ),
m_rDrawingML( *pDrawingML ),
m_pParagraphSpacingAttrList( NULL ),
m_pHyperlinkAttrList( NULL ),
m_pHyperlinkAttrList( NULL ),
m_bEndCharSdt(false),
m_bEndCharSdt(false),
m_bStartedCharSdt(false),
m_bStartedCharSdt(false),
...
@@ -8352,7 +8349,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
...
@@ -8352,7 +8349,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
DocxAttributeOutput::~DocxAttributeOutput()
DocxAttributeOutput::~DocxAttributeOutput()
{
{
delete m_pParagraphSpacingAttrList, m_pParagraphSpacingAttrList = NULL;
delete m_pHyperlinkAttrList, m_pHyperlinkAttrList = NULL;
delete m_pHyperlinkAttrList, m_pHyperlinkAttrList = NULL;
delete m_pColorAttrList, m_pColorAttrList = NULL;
delete m_pColorAttrList, m_pColorAttrList = NULL;
delete m_pBackgroundAttrList, m_pBackgroundAttrList = NULL;
delete m_pBackgroundAttrList, m_pBackgroundAttrList = NULL;
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
83f5a88c
...
@@ -726,7 +726,7 @@ private:
...
@@ -726,7 +726,7 @@ private:
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pEastAsianLayoutAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pEastAsianLayoutAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pCharLangAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pCharLangAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pSectionSpacingAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pSectionSpacingAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pParagraphSpacingAttrList
;
std
::
unique_ptr
<
sax_fastparser
::
FastAttributeList
>
m_pParagraphSpacingAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pHyperlinkAttrList
;
::
sax_fastparser
::
FastAttributeList
*
m_pHyperlinkAttrList
;
/// If the current SDT around runs should be ended before the current run.
/// If the current SDT around runs should be ended before the current run.
bool
m_bEndCharSdt
;
bool
m_bEndCharSdt
;
...
...
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