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
41281d37
Kaydet (Commit)
41281d37
authored
Ock 30, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make a few more users of ScAttrArray outside of the class const
Change-Id: I76aca6b1ddb8a326eecf70a68bed2a754e462c49
üst
e8226a93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
dociter.hxx
sc/inc/dociter.hxx
+1
-1
dociter.cxx
sc/source/core/data/dociter.cxx
+5
-5
No files found.
sc/inc/dociter.hxx
Dosyayı görüntüle @
41281d37
...
@@ -141,7 +141,7 @@ public:
...
@@ -141,7 +141,7 @@ public:
private
:
private
:
static
SCROW
GetRowByColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
,
SCSIZE
nColRow
);
static
SCROW
GetRowByColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
,
SCSIZE
nColRow
);
static
ScBaseCell
*
GetCellByColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
,
SCSIZE
nColRow
);
static
ScBaseCell
*
GetCellByColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
,
SCSIZE
nColRow
);
static
ScAttrArray
*
GetAttrArrayByCol
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
);
static
const
ScAttrArray
*
GetAttrArrayByCol
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
);
static
bool
IsQueryValid
(
ScDocument
&
rDoc
,
const
ScQueryParam
&
rParam
,
SCTAB
nTab
,
SCROW
nRow
,
ScBaseCell
*
pCell
);
static
bool
IsQueryValid
(
ScDocument
&
rDoc
,
const
ScQueryParam
&
rParam
,
SCTAB
nTab
,
SCROW
nRow
,
ScBaseCell
*
pCell
);
static
SCSIZE
SearchColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCROW
nRow
,
SCCOL
nCol
);
static
SCSIZE
SearchColEntryIndex
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCROW
nRow
,
SCCOL
nCol
);
...
...
sc/source/core/data/dociter.cxx
Dosyayı görüntüle @
41281d37
...
@@ -98,7 +98,7 @@ bool ScDocumentIterator::GetThisCol()
...
@@ -98,7 +98,7 @@ bool ScDocumentIterator::GetThisCol()
return
false
;
return
false
;
}
}
ScColumn
*
pCol
=
&
pTab
->
aCol
[
nCol
];
ScColumn
*
pCol
=
&
pTab
->
aCol
[
nCol
];
ScAttrArray
*
pAtt
=
pCol
->
pAttrArray
;
const
ScAttrArray
*
pAtt
=
pCol
->
pAttrArray
;
bool
bFound
=
false
;
bool
bFound
=
false
;
do
do
...
@@ -477,7 +477,7 @@ ScBaseCell* ScDBQueryDataIterator::GetCellByColEntryIndex(ScDocument& rDoc, SCTA
...
@@ -477,7 +477,7 @@ ScBaseCell* ScDBQueryDataIterator::GetCellByColEntryIndex(ScDocument& rDoc, SCTA
return
pCol
->
maItems
[
nColRow
].
pCell
;
return
pCol
->
maItems
[
nColRow
].
pCell
;
}
}
ScAttrArray
*
ScDBQueryDataIterator
::
GetAttrArrayByCol
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
)
const
ScAttrArray
*
ScDBQueryDataIterator
::
GetAttrArrayByCol
(
ScDocument
&
rDoc
,
SCTAB
nTab
,
SCCOL
nCol
)
{
{
if
(
nTab
>=
rDoc
.
GetTableCount
())
if
(
nTab
>=
rDoc
.
GetTableCount
())
OSL_FAIL
(
"try to access index out of bounds, FIX IT"
);
OSL_FAIL
(
"try to access index out of bounds, FIX IT"
);
...
@@ -1938,7 +1938,7 @@ ScHorizontalAttrIterator::ScHorizontalAttrIterator( ScDocument* pDocument, SCTAB
...
@@ -1938,7 +1938,7 @@ ScHorizontalAttrIterator::ScHorizontalAttrIterator( ScDocument* pDocument, SCTAB
for
(
i
=
nStartCol
;
i
<=
nEndCol
;
i
++
)
for
(
i
=
nStartCol
;
i
<=
nEndCol
;
i
++
)
{
{
SCCOL
nPos
=
i
-
nStartCol
;
SCCOL
nPos
=
i
-
nStartCol
;
ScAttrArray
*
pArray
=
pDoc
->
maTabs
[
nTab
]
->
aCol
[
i
].
pAttrArray
;
const
ScAttrArray
*
pArray
=
pDoc
->
maTabs
[
nTab
]
->
aCol
[
i
].
pAttrArray
;
OSL_ENSURE
(
pArray
,
"pArray == 0"
);
OSL_ENSURE
(
pArray
,
"pArray == 0"
);
SCSIZE
nIndex
;
SCSIZE
nIndex
;
...
@@ -1967,7 +1967,7 @@ ScHorizontalAttrIterator::ScHorizontalAttrIterator( ScDocument* pDocument, SCTAB
...
@@ -1967,7 +1967,7 @@ ScHorizontalAttrIterator::ScHorizontalAttrIterator( ScDocument* pDocument, SCTAB
ScHorizontalAttrIterator
::~
ScHorizontalAttrIterator
()
ScHorizontalAttrIterator
::~
ScHorizontalAttrIterator
()
{
{
delete
[]
(
ScPatternAttr
**
)
ppPatterns
;
delete
[]
ppPatterns
;
delete
[]
pNextEnd
;
delete
[]
pNextEnd
;
delete
[]
pIndices
;
delete
[]
pIndices
;
}
}
...
@@ -2012,7 +2012,7 @@ const ScPatternAttr* ScHorizontalAttrIterator::GetNext( SCCOL& rCol1, SCCOL& rCo
...
@@ -2012,7 +2012,7 @@ const ScPatternAttr* ScHorizontalAttrIterator::GetNext( SCCOL& rCol1, SCCOL& rCo
SCCOL
nPos
=
i
-
nStartCol
;
SCCOL
nPos
=
i
-
nStartCol
;
if
(
pNextEnd
[
nPos
]
<
nRow
)
if
(
pNextEnd
[
nPos
]
<
nRow
)
{
{
ScAttrArray
*
pArray
=
pDoc
->
maTabs
[
nTab
]
->
aCol
[
i
].
pAttrArray
;
const
ScAttrArray
*
pArray
=
pDoc
->
maTabs
[
nTab
]
->
aCol
[
i
].
pAttrArray
;
SCSIZE
nIndex
=
++
pIndices
[
nPos
];
SCSIZE
nIndex
=
++
pIndices
[
nPos
];
if
(
nIndex
<
pArray
->
nCount
)
if
(
nIndex
<
pArray
->
nCount
)
...
...
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