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
2bb444ec
Kaydet (Commit)
2bb444ec
authored
Nis 30, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
see if a re-org will silence coverity#1272392 Resource leak
Change-Id: I65c20f75c4086dc5167c6fa41b0171f07c1419bb
üst
4d28399c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
tableproperties.hxx
oox/inc/drawingml/table/tableproperties.hxx
+1
-1
tableproperties.cxx
oox/source/drawingml/table/tableproperties.cxx
+6
-10
No files found.
oox/inc/drawingml/table/tableproperties.hxx
Dosyayı görüntüle @
2bb444ec
...
...
@@ -57,7 +57,7 @@ public:
private
:
const
TableStyle
&
getUsedTableStyle
(
const
::
oox
::
core
::
XmlFilterBase
&
rFilterBase
,
bool
&
isCreateTabStyl
e
);
const
TableStyle
&
getUsedTableStyle
(
const
::
oox
::
core
::
XmlFilterBase
&
rFilterBase
,
TableStyle
*&
rTableStyleToDelet
e
);
OUString
maStyleId
;
// either StyleId is available
boost
::
shared_ptr
<
TableStyle
>
mpTableStyle
;
// or the complete TableStyle
...
...
oox/source/drawingml/table/tableproperties.cxx
Dosyayı görüntüle @
2bb444ec
...
...
@@ -221,7 +221,7 @@ TableStyle* CreateTableStyle(const OUString& styleId)
return
pTableStyle
;
}
const
TableStyle
&
TableProperties
::
getUsedTableStyle
(
const
::
oox
::
core
::
XmlFilterBase
&
rFilterBase
,
bool
&
isCreateTabStyl
e
)
const
TableStyle
&
TableProperties
::
getUsedTableStyle
(
const
::
oox
::
core
::
XmlFilterBase
&
rFilterBase
,
TableStyle
*&
rTableStyleToDelet
e
)
{
::
oox
::
core
::
XmlFilterBase
&
rBase
(
const_cast
<
::
oox
::
core
::
XmlFilterBase
&
>
(
rFilterBase
)
);
...
...
@@ -245,8 +245,8 @@ const TableStyle& TableProperties::getUsedTableStyle( const ::oox::core::XmlFilt
//if the pptx just has table style id, but no table style content, we will create the table style ourselves
if
(
!
pTableStyle
)
{
pTableStyl
e
=
CreateTableStyle
(
aStyleId
);
isCreateTabStyle
=
(
pTableStyle
!=
NULL
)
;
rTableStyleToDelet
e
=
CreateTableStyle
(
aStyleId
);
pTableStyle
=
rTableStyleToDelete
;
}
}
...
...
@@ -265,8 +265,8 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa
CreateTableColumns
(
xColumnRowRange
->
getColumns
(),
mvTableGrid
);
CreateTableRows
(
xColumnRowRange
->
getRows
(),
mvTableRows
);
bool
bOwnTblStyle
=
false
;
const
TableStyle
&
rTableStyle
(
getUsedTableStyle
(
rFilterBase
,
bOwnTblStyl
e
)
);
TableStyle
*
pTableStyleToDelete
=
NULL
;
const
TableStyle
&
rTableStyle
(
getUsedTableStyle
(
rFilterBase
,
pTableStyleToDelet
e
)
);
sal_Int32
nRow
=
0
;
const
std
::
vector
<
TableRow
>::
const_iterator
aTableRowEnd
(
mvTableRows
.
end
()
);
for
(
std
::
vector
<
TableRow
>::
iterator
aTableRowIter
(
mvTableRows
.
begin
()
);
...
...
@@ -291,11 +291,7 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa
}
}
if
(
bOwnTblStyle
)
{
TableStyle
*
pTableStyle
=
const_cast
<
TableStyle
*>
(
&
rTableStyle
);
delete
pTableStyle
;
}
delete
pTableStyleToDelete
;
}
}
}
}
...
...
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