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
b6c97e3f
Kaydet (Commit)
b6c97e3f
authored
Şub 12, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: I9c6502d635f36bc619352d0c14e7d617bb4ee2f8
üst
4d29e945
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
collect.cxx
sc/source/filter/starcalc/collect.cxx
+3
-3
collect.hxx
sc/source/filter/starcalc/collect.hxx
+10
-10
No files found.
sc/source/filter/starcalc/collect.cxx
Dosyayı görüntüle @
b6c97e3f
...
...
@@ -83,7 +83,7 @@ sal_uInt16 ScCollection::GetCount() const { return nCount; }
//------------------------------------------------------------------------
sal_B
ool
ScCollection
::
AtInsert
(
sal_uInt16
nIndex
,
ScDataObject
*
pScDataObject
)
b
ool
ScCollection
::
AtInsert
(
sal_uInt16
nIndex
,
ScDataObject
*
pScDataObject
)
{
if
((
nCount
<
MAXCOLLECTIONSIZE
)
&&
(
nIndex
<=
nCount
)
&&
pItems
)
{
...
...
@@ -101,14 +101,14 @@ sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject)
memmove
(
&
pItems
[
nIndex
+
1
],
&
pItems
[
nIndex
],
(
nCount
-
nIndex
)
*
sizeof
(
ScDataObject
*
));
pItems
[
nIndex
]
=
pScDataObject
;
nCount
++
;
return
sal_T
rue
;
return
t
rue
;
}
return
false
;
}
//------------------------------------------------------------------------
sal_B
ool
ScCollection
::
Insert
(
ScDataObject
*
pScDataObject
)
b
ool
ScCollection
::
Insert
(
ScDataObject
*
pScDataObject
)
{
return
AtInsert
(
nCount
,
pScDataObject
);
}
...
...
sc/source/filter/starcalc/collect.hxx
Dosyayı görüntüle @
b6c97e3f
...
...
@@ -25,7 +25,7 @@
class
ScDataObject
{
public
:
ScDataObject
()
{}
ScDataObject
()
{}
virtual
~
ScDataObject
();
virtual
ScDataObject
*
Clone
()
const
=
0
;
};
...
...
@@ -36,23 +36,23 @@ protected:
sal_uInt16
nCount
;
sal_uInt16
nLimit
;
sal_uInt16
nDelta
;
ScDataObject
**
pItems
;
ScDataObject
**
pItems
;
public
:
ScCollection
(
sal_uInt16
nLim
=
4
,
sal_uInt16
nDel
=
4
);
ScCollection
(
const
ScCollection
&
rCollection
);
virtual
~
ScCollection
();
virtual
~
ScCollection
();
virtual
ScDataObject
*
Clone
()
const
;
sal_Bool
AtInsert
(
sal_uInt16
nIndex
,
ScDataObject
*
pScDataObject
);
virtual
sal_Bool
Insert
(
ScDataObject
*
pScDataObject
);
bool
AtInsert
(
sal_uInt16
nIndex
,
ScDataObject
*
pScDataObject
);
bool
Insert
(
ScDataObject
*
pScDataObject
);
ScDataObject
*
At
(
sal_uInt16
nIndex
)
const
;
virtual
sal_uInt16
IndexOf
(
ScDataObject
*
pScDataObject
)
const
;
sal_uInt16
GetCount
()
const
;
ScDataObject
*
At
(
sal_uInt16
nIndex
)
const
;
sal_uInt16
IndexOf
(
ScDataObject
*
pScDataObject
)
const
;
sal_uInt16
GetCount
()
const
;
ScDataObject
*
operator
[](
const
sal_uInt16
nIndex
)
const
{
return
At
(
nIndex
);
}
ScCollection
&
operator
=
(
const
ScCollection
&
rCol
);
ScDataObject
*
operator
[](
const
sal_uInt16
nIndex
)
const
{
return
At
(
nIndex
);
}
ScCollection
&
operator
=
(
const
ScCollection
&
rCol
);
};
#endif
...
...
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