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
8c40de80
Kaydet (Commit)
8c40de80
authored
Nis 14, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Nis 18, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR to std::vector
üst
759c5373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
XMLTextColumnsContext.cxx
xmloff/source/text/XMLTextColumnsContext.cxx
+6
-9
No files found.
xmloff/source/text/XMLTextColumnsContext.cxx
Dosyayı görüntüle @
8c40de80
...
@@ -284,8 +284,7 @@ XMLTextColumnSepContext_Impl::~XMLTextColumnSepContext_Impl()
...
@@ -284,8 +284,7 @@ XMLTextColumnSepContext_Impl::~XMLTextColumnSepContext_Impl()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
typedef
XMLTextColumnContext_Impl
*
XMLTextColumnContext_ImplPtr
;
class
XMLTextColumnsArray_Impl
:
public
std
::
vector
<
XMLTextColumnContext_Impl
*>
{};
SV_DECL_PTRARR
(
XMLTextColumnsArray_Impl
,
XMLTextColumnContext_ImplPtr
,
5
)
TYPEINIT1
(
XMLTextColumnsContext
,
XMLElementPropertyContext
);
TYPEINIT1
(
XMLTextColumnsContext
,
XMLElementPropertyContext
);
...
@@ -343,12 +342,10 @@ XMLTextColumnsContext::~XMLTextColumnsContext()
...
@@ -343,12 +342,10 @@ XMLTextColumnsContext::~XMLTextColumnsContext()
{
{
if
(
pColumns
)
if
(
pColumns
)
{
{
sal_uInt16
nColCount
=
pColumns
->
Count
();
while
(
!
pColumns
->
empty
()
)
while
(
nColCount
)
{
{
nColCount
--
;
XMLTextColumnContext_Impl
*
pColumn
=
*
pColumns
->
begin
();
XMLTextColumnContext_Impl
*
pColumn
=
(
*
pColumns
)[
nColCount
];
pColumns
->
erase
(
pColumns
->
begin
()
);
pColumns
->
Remove
(
nColCount
,
1
);
pColumn
->
ReleaseRef
();
pColumn
->
ReleaseRef
();
}
}
}
}
...
@@ -378,7 +375,7 @@ SvXMLImportContext *XMLTextColumnsContext::CreateChildContext(
...
@@ -378,7 +375,7 @@ SvXMLImportContext *XMLTextColumnsContext::CreateChildContext(
if
(
!
pColumns
)
if
(
!
pColumns
)
pColumns
=
new
XMLTextColumnsArray_Impl
;
pColumns
=
new
XMLTextColumnsArray_Impl
;
pColumns
->
Insert
(
pColumn
,
pColumns
->
Count
()
);
pColumns
->
push_back
(
pColumn
);
pColumn
->
AddRef
();
pColumn
->
AddRef
();
pContext
=
pColumn
;
pContext
=
pColumn
;
...
@@ -419,7 +416,7 @@ void XMLTextColumnsContext::EndElement( )
...
@@ -419,7 +416,7 @@ void XMLTextColumnsContext::EndElement( )
xColumns
->
setColumnCount
(
1
);
xColumns
->
setColumnCount
(
1
);
}
}
else
if
(
!
bAutomatic
&&
pColumns
&&
else
if
(
!
bAutomatic
&&
pColumns
&&
pColumns
->
Count
()
==
(
sal_uInt16
)
nCount
)
pColumns
->
size
()
==
(
sal_uInt16
)
nCount
)
{
{
// if we have column descriptions, one per column, and we don't use
// if we have column descriptions, one per column, and we don't use
// automatic width, then set the column widths
// automatic width, then set the column widths
...
...
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