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
fda007e6
Kaydet (Commit)
fda007e6
authored
May 23, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use static_cast instead of c style cast
Change-Id: I9194d5fb9fc42247cf43bfcd0327472eeca7c297
üst
abbe4414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
column.cxx
sc/source/core/data/column.cxx
+7
-6
No files found.
sc/source/core/data/column.cxx
Dosyayı görüntüle @
fda007e6
...
@@ -2183,13 +2183,13 @@ void ScColumn::CalcAll()
...
@@ -2183,13 +2183,13 @@ void ScColumn::CalcAll()
ScBaseCell
*
pCell
=
maItems
[
i
].
pCell
;
ScBaseCell
*
pCell
=
maItems
[
i
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
{
{
ScFormulaCell
*
pFCell
=
static_cast
<
ScFormulaCell
*>
(
pCell
);
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
// after F9 ctrl-F9: check the calculation for each FormulaTree
// after F9 ctrl-F9: check the calculation for each FormulaTree
ScFormulaCell
*
pFCell
=
(
ScFormulaCell
*
)
pCell
;
double
nOldVal
,
nNewVal
;
double
nOldVal
,
nNewVal
;
nOldVal
=
pFCell
->
GetValue
();
nOldVal
=
pFCell
->
GetValue
();
#endif
#endif
((
ScFormulaCell
*
)
pCell
)
->
Interpret
();
pFCell
->
Interpret
();
#if OSL_DEBUG_LEVEL > 1
#if OSL_DEBUG_LEVEL > 1
if
(
pFCell
->
GetCode
()
->
IsRecalcModeNormal
()
)
if
(
pFCell
->
GetCode
()
->
IsRecalcModeNormal
()
)
nNewVal
=
pFCell
->
GetValue
();
nNewVal
=
pFCell
->
GetValue
();
...
@@ -2214,9 +2214,10 @@ void ScColumn::CompileAll()
...
@@ -2214,9 +2214,10 @@ void ScColumn::CompileAll()
SCROW
nRow
=
maItems
[
i
].
nRow
;
SCROW
nRow
=
maItems
[
i
].
nRow
;
// for unconditional compilation
// for unconditional compilation
// bCompile=true and pCode->nError=0
// bCompile=true and pCode->nError=0
((
ScFormulaCell
*
)
pCell
)
->
GetCode
()
->
SetCodeError
(
0
);
ScFormulaCell
*
pFCell
=
static_cast
<
ScFormulaCell
*>
(
pCell
);
((
ScFormulaCell
*
)
pCell
)
->
SetCompile
(
true
);
pFCell
->
GetCode
()
->
SetCodeError
(
0
);
((
ScFormulaCell
*
)
pCell
)
->
CompileTokenArray
();
pFCell
->
SetCompile
(
true
);
pFCell
->
CompileTokenArray
();
if
(
nRow
!=
maItems
[
i
].
nRow
)
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Listener deleted/inserted?
Search
(
nRow
,
i
);
// Listener deleted/inserted?
}
}
...
@@ -2234,7 +2235,7 @@ void ScColumn::CompileXML( ScProgress& rProgress )
...
@@ -2234,7 +2235,7 @@ void ScColumn::CompileXML( ScProgress& rProgress )
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
{
{
SCROW
nRow
=
maItems
[
i
].
nRow
;
SCROW
nRow
=
maItems
[
i
].
nRow
;
((
ScFormulaCell
*
)
pCell
)
->
CompileXML
(
rProgress
);
static_cast
<
ScFormulaCell
*>
(
pCell
)
->
CompileXML
(
rProgress
);
if
(
nRow
!=
maItems
[
i
].
nRow
)
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Listener deleted/inserted?
Search
(
nRow
,
i
);
// Listener deleted/inserted?
}
}
...
...
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