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
2021275f
Kaydet (Commit)
2021275f
authored
Ock 07, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "Check number of cells referenced by group instead of group size"
This reverts commit
cc4dbc0c
.
üst
9a531861
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
42 deletions
+1
-42
formulacell.hxx
sc/inc/formulacell.hxx
+0
-4
tokenarray.hxx
sc/inc/tokenarray.hxx
+0
-3
formulacell.cxx
sc/source/core/data/formulacell.cxx
+1
-8
token.cxx
sc/source/core/tool/token.cxx
+0
-27
No files found.
sc/inc/formulacell.hxx
Dosyayı görüntüle @
2021275f
...
...
@@ -410,10 +410,6 @@ public:
bool
IsSharedTop
()
const
;
SCROW
GetSharedTopRow
()
const
;
SCROW
GetSharedLength
()
const
;
// An estimate of the number of cells referenced by the formula
sal_Int32
GetWeight
()
const
;
ScTokenArray
*
GetSharedCode
();
const
ScTokenArray
*
GetSharedCode
()
const
;
...
...
sc/inc/tokenarray.hxx
Dosyayı görüntüle @
2021275f
...
...
@@ -60,9 +60,6 @@ public:
virtual
~
ScTokenArray
();
ScTokenArray
*
Clone
()
const
;
/// True copy!
// An estimate of the number of cells referenced by the token array
sal_Int32
GetWeight
()
const
;
void
GenHash
();
size_t
GetHash
()
const
{
return
mnHashValue
;}
...
...
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
2021275f
...
...
@@ -3752,7 +3752,7 @@ bool ScFormulaCell::InterpretFormulaGroup()
if
(
mxGroup
->
meCalcState
==
sc
::
GroupCalcDisabled
)
return
false
;
if
(
Get
Weight
()
<
ScInterpreter
::
GetGlobalConfig
().
mnOpenCLMinimumFormulaGroupSize
)
if
(
Get
SharedLength
()
<
ScInterpreter
::
GetGlobalConfig
().
mnOpenCLMinimumFormulaGroupSize
)
{
mxGroup
->
meCalcState
=
sc
::
GroupCalcDisabled
;
return
false
;
...
...
@@ -4130,13 +4130,6 @@ SCROW ScFormulaCell::GetSharedLength() const
return
mxGroup
?
mxGroup
->
mnLength
:
0
;
}
sal_Int32
ScFormulaCell
::
GetWeight
()
const
{
if
(
!
mxGroup
)
return
pCode
->
GetWeight
();
return
GetSharedLength
()
*
GetSharedCode
()
->
GetWeight
();
}
ScTokenArray
*
ScFormulaCell
::
GetSharedCode
()
{
return
mxGroup
?
mxGroup
->
mpCode
:
NULL
;
...
...
sc/source/core/tool/token.cxx
Dosyayı görüntüle @
2021275f
...
...
@@ -1417,33 +1417,6 @@ bool ScTokenArray::ImplGetReference( ScRange& rRange, const ScAddress& rPos, boo
return
bIs
;
}
sal_Int32
ScTokenArray
::
GetWeight
()
const
{
sal_Int32
result
(
0
);
FormulaToken
**
p
=
pCode
;
FormulaToken
**
pEnd
=
p
+
static_cast
<
size_t
>
(
nLen
);
for
(;
p
!=
pEnd
;
++
p
)
{
switch
((
*
p
)
->
GetType
())
{
case
svDoubleRef
:
case
svExternalDoubleRef
:
{
const
ScComplexRefData
&
rRef
=
*
(
*
p
)
->
GetDoubleRef
();
result
+=
(
(
rRef
.
Ref2
.
Row
()
-
rRef
.
Ref1
.
Row
()
+
1
)
*
(
rRef
.
Ref2
.
Col
()
-
rRef
.
Ref1
.
Col
()
+
1
)
);
}
break
;
default
:
break
;
}
}
// Just print out the this pointer. It turns out to be quite complicated to get
// a symbolic printout of the ScTokenArray here.
SAL_INFO
(
"sc.token"
,
"GetWeight("
<<
this
<<
"): "
<<
result
);
return
result
;
}
namespace
{
// we want to compare for similar not identical formulae
...
...
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