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
865c9fbb
Kaydet (Commit)
865c9fbb
authored
Eyl 13, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount in ScRangeList::Parse
Change-Id: I2c9628e5064ea03c878d6e45118755596a060d5a
üst
a37535e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
rangelst.cxx
sc/source/core/tool/rangelst.cxx
+7
-12
No files found.
sc/source/core/tool/rangelst.cxx
Dosyayı görüntüle @
865c9fbb
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include <stdlib.h>
#include <stdlib.h>
#include <comphelper/string.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/collatorwrapper.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
...
@@ -170,18 +169,12 @@ sal_uInt16 ScRangeList::Parse( const OUString& rStr, ScDocument* pDoc, sal_uInt1
...
@@ -170,18 +169,12 @@ sal_uInt16 ScRangeList::Parse( const OUString& rStr, ScDocument* pDoc, sal_uInt1
nMask
|=
SCA_VALID
;
// falls das jemand vergessen sollte
nMask
|=
SCA_VALID
;
// falls das jemand vergessen sollte
sal_uInt16
nResult
=
(
sal_uInt16
)
~
0
;
// alle Bits setzen
sal_uInt16
nResult
=
(
sal_uInt16
)
~
0
;
// alle Bits setzen
ScRange
aRange
;
ScRange
aRange
;
OUString
aOne
;
const
SCTAB
nTab
=
pDoc
?
nDefaultTab
:
0
;
SCTAB
nTab
=
0
;
if
(
pDoc
)
sal_Int32
nPos
=
0
;
{
do
nTab
=
nDefaultTab
;
}
else
nTab
=
0
;
sal_uInt16
nTCount
=
comphelper
::
string
::
getTokenCount
(
rStr
,
cDelimiter
);
for
(
sal_uInt16
i
=
0
;
i
<
nTCount
;
i
++
)
{
{
aOne
=
rStr
.
getToken
(
i
,
cDelimiter
);
const
OUString
aOne
=
rStr
.
getToken
(
0
,
cDelimiter
,
nPos
);
aRange
.
aStart
.
SetTab
(
nTab
);
// Default Tab wenn nicht angegeben
aRange
.
aStart
.
SetTab
(
nTab
);
// Default Tab wenn nicht angegeben
sal_uInt16
nRes
=
aRange
.
ParseAny
(
aOne
,
pDoc
,
eConv
);
sal_uInt16
nRes
=
aRange
.
ParseAny
(
aOne
,
pDoc
,
eConv
);
sal_uInt16
nEndRangeBits
=
SCA_VALID_COL2
|
SCA_VALID_ROW2
|
SCA_VALID_TAB2
;
sal_uInt16
nEndRangeBits
=
SCA_VALID_COL2
|
SCA_VALID_ROW2
|
SCA_VALID_TAB2
;
...
@@ -197,6 +190,8 @@ sal_uInt16 ScRangeList::Parse( const OUString& rStr, ScDocument* pDoc, sal_uInt1
...
@@ -197,6 +190,8 @@ sal_uInt16 ScRangeList::Parse( const OUString& rStr, ScDocument* pDoc, sal_uInt1
Append
(
aRange
);
Append
(
aRange
);
nResult
&=
nRes
;
// alle gemeinsamen Bits bleiben erhalten
nResult
&=
nRes
;
// alle gemeinsamen Bits bleiben erhalten
}
}
while
(
nPos
>=
0
);
return
nResult
;
// SCA_VALID gesetzt wenn alle ok
return
nResult
;
// SCA_VALID gesetzt wenn alle ok
}
}
else
else
...
...
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