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
46befa93
Kaydet (Commit)
46befa93
authored
Nis 20, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clarify that only text in arrays is to be converted, tdf#88547 follow-up
Change-Id: I7cebaf1a2907f4beb10e128ea5d479df45c1e1c5
üst
b756a907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
interpre.hxx
sc/source/core/inc/interpre.hxx
+2
-2
interpr3.cxx
sc/source/core/tool/interpr3.cxx
+4
-4
No files found.
sc/source/core/inc/interpre.hxx
Dosyayı görüntüle @
46befa93
...
@@ -816,8 +816,8 @@ void ScMedian();
...
@@ -816,8 +816,8 @@ void ScMedian();
double
GetMedian
(
::
std
::
vector
<
double
>
&
rArray
);
double
GetMedian
(
::
std
::
vector
<
double
>
&
rArray
);
double
GetPercentile
(
::
std
::
vector
<
double
>
&
rArray
,
double
fPercentile
);
double
GetPercentile
(
::
std
::
vector
<
double
>
&
rArray
,
double
fPercentile
);
double
GetPercentileExclusive
(
::
std
::
vector
<
double
>
&
rArray
,
double
fPercentile
);
double
GetPercentileExclusive
(
::
std
::
vector
<
double
>
&
rArray
,
double
fPercentile
);
void
GetNumberSequenceArray
(
sal_uInt8
nParamCount
,
::
std
::
vector
<
double
>&
rArray
,
bool
b
AllowText
);
void
GetNumberSequenceArray
(
sal_uInt8
nParamCount
,
::
std
::
vector
<
double
>&
rArray
,
bool
b
ConvertTextInArray
);
void
GetSortArray
(
sal_uInt8
nParamCount
,
::
std
::
vector
<
double
>&
rSortArray
,
::
std
::
vector
<
long
>*
pIndexOrder
,
bool
b
AllowText
);
void
GetSortArray
(
sal_uInt8
nParamCount
,
::
std
::
vector
<
double
>&
rSortArray
,
::
std
::
vector
<
long
>*
pIndexOrder
,
bool
b
ConvertTextInArray
);
void
QuickSort
(
::
std
::
vector
<
double
>&
rSortArray
,
::
std
::
vector
<
long
>*
pIndexOrder
=
NULL
);
void
QuickSort
(
::
std
::
vector
<
double
>&
rSortArray
,
::
std
::
vector
<
long
>*
pIndexOrder
=
NULL
);
void
ScModalValue
();
void
ScModalValue
();
void
ScModalValue_Multi
();
void
ScModalValue_Multi
();
...
...
sc/source/core/tool/interpr3.cxx
Dosyayı görüntüle @
46befa93
...
@@ -3662,7 +3662,7 @@ void ScInterpreter::ScTrimMean()
...
@@ -3662,7 +3662,7 @@ void ScInterpreter::ScTrimMean()
}
}
}
}
void
ScInterpreter
::
GetNumberSequenceArray
(
sal_uInt8
nParamCount
,
vector
<
double
>&
rArray
,
bool
b
AllowText
)
void
ScInterpreter
::
GetNumberSequenceArray
(
sal_uInt8
nParamCount
,
vector
<
double
>&
rArray
,
bool
b
ConvertTextInArray
)
{
{
ScAddress
aAdr
;
ScAddress
aAdr
;
ScRange
aRange
;
ScRange
aRange
;
...
@@ -3724,7 +3724,7 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
...
@@ -3724,7 +3724,7 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
for
(
SCSIZE
i
=
0
;
i
<
nCount
;
++
i
)
for
(
SCSIZE
i
=
0
;
i
<
nCount
;
++
i
)
rArray
.
push_back
(
pMat
->
GetDouble
(
i
));
rArray
.
push_back
(
pMat
->
GetDouble
(
i
));
}
}
else
if
(
b
AllowText
)
else
if
(
b
ConvertTextInArray
)
{
{
for
(
SCSIZE
i
=
0
;
i
<
nCount
;
++
i
)
for
(
SCSIZE
i
=
0
;
i
<
nCount
;
++
i
)
{
{
...
@@ -3782,9 +3782,9 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
...
@@ -3782,9 +3782,9 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
PopError
();
PopError
();
}
}
void
ScInterpreter
::
GetSortArray
(
sal_uInt8
nParamCount
,
vector
<
double
>&
rSortArray
,
vector
<
long
>*
pIndexOrder
,
bool
b
AllowText
)
void
ScInterpreter
::
GetSortArray
(
sal_uInt8
nParamCount
,
vector
<
double
>&
rSortArray
,
vector
<
long
>*
pIndexOrder
,
bool
b
ConvertTextInArray
)
{
{
GetNumberSequenceArray
(
nParamCount
,
rSortArray
,
b
AllowText
);
GetNumberSequenceArray
(
nParamCount
,
rSortArray
,
b
ConvertTextInArray
);
if
(
rSortArray
.
size
()
>
MAX_ANZ_DOUBLE_FOR_SORT
)
if
(
rSortArray
.
size
()
>
MAX_ANZ_DOUBLE_FOR_SORT
)
SetError
(
errStackOverflow
);
SetError
(
errStackOverflow
);
else
if
(
rSortArray
.
empty
())
else
if
(
rSortArray
.
empty
())
...
...
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