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
c3669975
Kaydet (Commit)
c3669975
authored
Haz 03, 2011
tarafından
Rafael Dominguez
Kaydeden (comit)
Petr Mladek
Haz 09, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace List for std::vector<ExcRecord*>.
üst
f642d233
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
excrecds.cxx
sc/source/filter/excel/excrecds.cxx
+4
-4
excrecds.hxx
sc/source/filter/inc/excrecds.hxx
+6
-9
No files found.
sc/source/filter/excel/excrecds.cxx
Dosyayı görüntüle @
c3669975
...
...
@@ -182,15 +182,15 @@ sal_Size ExcEmptyRec::GetLen() const
ExcRecordList
::~
ExcRecordList
()
{
for
(
ExcRecord
*
pRec
=
First
();
pRec
;
pRec
=
Next
()
)
delete
pRec
;
for
(
iterator
pIter
=
maRecords
.
begin
();
pIter
!=
maRecords
.
end
();
++
pIter
)
delete
(
*
pIter
)
;
}
void
ExcRecordList
::
Save
(
XclExpStream
&
rStrm
)
{
for
(
ExcRecord
*
pRec
=
First
();
pRec
;
pRec
=
Next
()
)
pRec
->
Save
(
rStrm
);
for
(
iterator
pIter
=
maRecords
.
begin
();
pIter
!=
maRecords
.
end
();
++
pIter
)
(
*
pIter
)
->
Save
(
rStrm
);
}
...
...
sc/source/filter/inc/excrecds.hxx
Dosyayı görüntüle @
c3669975
...
...
@@ -53,7 +53,6 @@
class
SvStream
;
class
Font
;
class
List
;
class
ScPatternAttr
;
class
ScTokenArray
;
class
ScRangeData
;
...
...
@@ -101,20 +100,18 @@ public:
//------------------------------------------------------- class ExcRecordList -
class
ExcRecordList
:
p
rotected
List
,
p
ublic
ExcEmptyRec
class
ExcRecordList
:
public
ExcEmptyRec
{
private
:
protected
:
std
::
vector
<
ExcRecord
*>
maRecords
;
public
:
virtual
~
ExcRecordList
();
using
List
::
Count
;
typedef
std
::
vector
<
ExcRecord
*>::
iterator
iterator
;
inline
ExcRecord
*
First
(
void
)
{
return
(
ExcRecord
*
)
List
::
First
();
}
inline
ExcRecord
*
Next
(
void
)
{
return
(
ExcRecord
*
)
List
::
Next
();
}
virtual
~
ExcRecordList
();
inline
void
Append
(
ExcRecord
*
pNew
)
{
if
(
pNew
)
List
::
Insert
(
pNew
,
LIST_APPEND
);
}
inline
const
ExcRecord
*
Get
(
sal_uInt32
nNum
)
const
{
return
(
ExcRecord
*
)
List
::
GetObject
(
nNum
);
}
inline
void
Append
(
ExcRecord
*
pNew
)
{
if
(
pNew
)
maRecords
.
push_back
(
pNew
);
}
virtual
void
Save
(
XclExpStream
&
rStrm
);
};
...
...
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