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
6b3722c2
Kaydet (Commit)
6b3722c2
authored
Haz 12, 2017
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Take new FormulaTokenArrayPlainIterator into use in one more file
Change-Id: I0a7565e2cc666151440d9fdb0a0e7b90263a88e5
üst
f1181869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
validat.cxx
sc/source/core/data/validat.cxx
+7
-7
No files found.
sc/source/core/data/validat.cxx
Dosyayı görüntüle @
6b3722c2
...
...
@@ -556,7 +556,7 @@ class ScStringTokenIterator
{
public
:
explicit
ScStringTokenIterator
(
ScTokenArray
&
rTokArr
)
:
mrTokAr
r
(
rTokArr
),
mbSkipEmpty
(
true
),
mbOk
(
true
)
{}
maIte
r
(
rTokArr
),
mbSkipEmpty
(
true
),
mbOk
(
true
)
{}
/** Returns the string of the first string token or NULL on error or empty token array. */
rtl_uString
*
First
();
...
...
@@ -568,14 +568,14 @@ public:
private
:
svl
::
SharedString
maCurString
;
/// Current string.
ScTokenArray
&
mrTokArr
;
/// The token array for iteration.
FormulaTokenArrayPlainIterator
maIter
;
bool
mbSkipEmpty
;
/// Ignore empty strings.
bool
mbOk
;
/// true = correct token or end of token array.
};
rtl_uString
*
ScStringTokenIterator
::
First
()
{
m
rTokAr
r
.
Reset
();
m
aIte
r
.
Reset
();
mbOk
=
true
;
return
Next
();
}
...
...
@@ -586,9 +586,9 @@ rtl_uString* ScStringTokenIterator::Next()
return
nullptr
;
// seek to next non-separator token
const
FormulaToken
*
pToken
=
m
rTokAr
r
.
NextNoSpaces
();
const
FormulaToken
*
pToken
=
m
aIte
r
.
NextNoSpaces
();
while
(
pToken
&&
(
pToken
->
GetOpCode
()
==
ocSep
)
)
pToken
=
m
rTokAr
r
.
NextNoSpaces
();
pToken
=
m
aIte
r
.
NextNoSpaces
();
mbOk
=
!
pToken
||
(
pToken
->
GetType
()
==
formula
::
svString
);
...
...
@@ -679,9 +679,9 @@ bool ScValidationData::GetSelectionFromFormula(
ScRange
aRange
;
ScTokenArray
*
pArr
=
const_cast
<
ScTokenArray
*>
(
&
rTokArr
);
pArr
->
Reset
(
);
formula
::
FormulaTokenArrayPlainIterator
aIter
(
*
pArr
);
formula
::
FormulaToken
*
t
=
nullptr
;
if
(
pArr
->
GetLen
()
==
1
&&
(
t
=
pArr
->
GetNextReferenceOrName
())
!=
nullptr
)
if
(
pArr
->
GetLen
()
==
1
&&
(
t
=
aIter
.
GetNextReferenceOrName
())
!=
nullptr
)
{
OpCode
eOpCode
=
t
->
GetOpCode
();
if
(
eOpCode
==
ocDBArea
||
eOpCode
==
ocTableRef
)
...
...
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