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
9406ab47
Kaydet (Commit)
9406ab47
authored
Nis 22, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput::m_postponedDMLDrawing: use std::unique_ptr<>
Change-Id: I0125467bad9be48ce8daa1fda32c731d8ee96b40
üst
1ba8a901
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+8
-11
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
9406ab47
...
...
@@ -1639,8 +1639,8 @@ void DocxAttributeOutput::StartRunProperties()
OSL_ASSERT( !m_pPostponedVMLDrawings );
m_pPostponedVMLDrawings.reset(new std::list<PostponedDrawing>());
assert(!m_p
ostponedDMLDrawing
);
m_p
ostponedDMLDrawing = new std::list< PostponedDrawing >
;
assert(!m_p
PostponedDMLDrawings
);
m_p
PostponedDMLDrawings.reset(new std::list<PostponedDrawing>())
;
assert( !m_pPostponedOLEs );
m_pPostponedOLEs.reset(new std::list<PostponedOLE>());
...
...
@@ -4785,17 +4785,16 @@ void DocxAttributeOutput::WritePostponedCustomShape()
void DocxAttributeOutput::WritePostponedDMLDrawing()
{
if
(m_postponedDMLDrawing == NULL
)
if
(!m_pPostponedDMLDrawings
)
return;
// Clear the list early, this method may be called recursively.
std::list<PostponedDrawing>* postponedDMLDrawing = m_postponedDMLDrawing;
m_postponedDMLDrawing = NULL;
std::unique_ptr< std::list<PostponedDrawing> > pPostponedDMLDrawings(m_pPostponedDMLDrawings.release());
std::unique_ptr< std::list<PostponedOLE> > pPostponedOLEs(m_pPostponedOLEs.release());
bool bStartedParaSdt = m_bStartedParaSdt;
for( std::list< PostponedDrawing >::iterator it = p
ostponedDMLDrawing
->begin();
it != p
ostponedDMLDrawing
->end();
for( std::list< PostponedDrawing >::iterator it = p
PostponedDMLDrawings
->begin();
it != p
PostponedDMLDrawings
->end();
++it )
{
// Avoid w:drawing within another w:drawing.
...
...
@@ -4806,7 +4805,6 @@ void DocxAttributeOutput::WritePostponedDMLDrawing()
}
m_bStartedParaSdt = bStartedParaSdt;
delete postponedDMLDrawing;
m_pPostponedOLEs.reset(pPostponedOLEs.release());
}
...
...
@@ -4856,7 +4854,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
}
else
{
if (
m_postponedDMLDrawing == NULL
)
if (
!m_pPostponedDMLDrawings
)
{
bool bStartedParaSdt = m_bStartedParaSdt;
if ( IsAlternateContentChoiceOpen() )
...
...
@@ -4881,7 +4879,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
{
// we are writing out attributes, but w:drawing should not be inside w:rPr, so write it out later
m_bPostponedProcessingFly = true ;
m_p
ostponedDMLDrawing
->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrmFmt()), &rNdTopLeft));
m_p
PostponedDMLDrawings
->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrmFmt()), &rNdTopLeft));
}
}
}
...
...
@@ -8323,7 +8321,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_startedHyperlink( false ),
m_nHyperLinkCount(0),
m_nFieldsInHyperlink( 0 ),
m_postponedDMLDrawing(NULL),
m_postponedChart( NULL ),
pendingPlaceholder( NULL ),
m_postitFieldsMaxId( 0 ),
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
9406ab47
...
...
@@ -848,7 +848,7 @@ private:
const
Point
*
point
;
};
std
::
unique_ptr
<
std
::
list
<
PostponedDrawing
>
>
m_pPostponedVMLDrawings
;
std
::
list
<
PostponedDrawing
>*
m_postponedDMLDrawing
;
std
::
unique_ptr
<
std
::
list
<
PostponedDrawing
>
>
m_pPostponedDMLDrawings
;
std
::
unique_ptr
<
std
::
list
<
PostponedDrawing
>
>
m_pPostponedCustomShape
;
struct
PostponedOLE
...
...
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