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
37a8815c
Kaydet (Commit)
37a8815c
authored
Haz 15, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let's not use 'p' prefix for iterators.
'p' is reserved for pointers, and iterators are not pointers.
üst
d905f614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
tool.cxx
sc/source/filter/lotus/tool.cxx
+15
-15
No files found.
sc/source/filter/lotus/tool.cxx
Dosyayı görüntüle @
37a8815c
...
@@ -566,12 +566,12 @@ sal_Bool RangeNameBufferWK3::FindRel( const String& rRef, sal_uInt16& rIndex )
...
@@ -566,12 +566,12 @@ sal_Bool RangeNameBufferWK3::FindRel( const String& rRef, sal_uInt16& rIndex )
{
{
StringHashEntry
aRef
(
rRef
);
StringHashEntry
aRef
(
rRef
);
std
::
vector
<
ENTRY
>::
const_iterator
pIte
r
;
std
::
vector
<
ENTRY
>::
const_iterator
it
r
;
for
(
pIter
=
maEntries
.
begin
();
pIter
!=
maEntries
.
end
();
++
pIte
r
)
for
(
itr
=
maEntries
.
begin
();
itr
!=
maEntries
.
end
();
++
it
r
)
{
{
if
(
aRef
==
pIte
r
->
aStrHashEntry
)
if
(
aRef
==
it
r
->
aStrHashEntry
)
{
{
rIndex
=
pIte
r
->
nRelInd
;
rIndex
=
it
r
->
nRelInd
;
return
true
;
return
true
;
}
}
}
}
...
@@ -585,37 +585,37 @@ sal_Bool RangeNameBufferWK3::FindAbs( const String& rRef, sal_uInt16& rIndex )
...
@@ -585,37 +585,37 @@ sal_Bool RangeNameBufferWK3::FindAbs( const String& rRef, sal_uInt16& rIndex )
String
aTmp
(
rRef
);
String
aTmp
(
rRef
);
StringHashEntry
aRef
(
aTmp
.
Erase
(
0
,
1
)
);
// ohne '$' suchen!
StringHashEntry
aRef
(
aTmp
.
Erase
(
0
,
1
)
);
// ohne '$' suchen!
std
::
vector
<
ENTRY
>::
iterator
pIte
r
;
std
::
vector
<
ENTRY
>::
iterator
it
r
;
for
(
pIter
=
maEntries
.
begin
();
pIter
!=
maEntries
.
end
();
++
pIte
r
)
for
(
itr
=
maEntries
.
begin
();
itr
!=
maEntries
.
end
();
++
it
r
)
{
{
if
(
aRef
==
pIte
r
->
aStrHashEntry
)
if
(
aRef
==
it
r
->
aStrHashEntry
)
{
{
// eventuell neuen Range Name aufbauen
// eventuell neuen Range Name aufbauen
if
(
pIte
r
->
nAbsInd
)
if
(
it
r
->
nAbsInd
)
rIndex
=
pIte
r
->
nAbsInd
;
rIndex
=
it
r
->
nAbsInd
;
else
else
{
{
ScSingleRefData
*
pRef
=
&
pIte
r
->
aScComplexRefDataRel
.
Ref1
;
ScSingleRefData
*
pRef
=
&
it
r
->
aScComplexRefDataRel
.
Ref1
;
pScTokenArray
->
Clear
();
pScTokenArray
->
Clear
();
pRef
->
SetColRel
(
false
);
pRef
->
SetColRel
(
false
);
pRef
->
SetRowRel
(
false
);
pRef
->
SetRowRel
(
false
);
pRef
->
SetTabRel
(
sal_True
);
pRef
->
SetTabRel
(
sal_True
);
if
(
pIte
r
->
bSingleRef
)
if
(
it
r
->
bSingleRef
)
pScTokenArray
->
AddSingleReference
(
*
pRef
);
pScTokenArray
->
AddSingleReference
(
*
pRef
);
else
else
{
{
pRef
=
&
pIte
r
->
aScComplexRefDataRel
.
Ref2
;
pRef
=
&
it
r
->
aScComplexRefDataRel
.
Ref2
;
pRef
->
SetColRel
(
false
);
pRef
->
SetColRel
(
false
);
pRef
->
SetRowRel
(
false
);
pRef
->
SetRowRel
(
false
);
pRef
->
SetTabRel
(
sal_True
);
pRef
->
SetTabRel
(
sal_True
);
pScTokenArray
->
AddDoubleReference
(
pIte
r
->
aScComplexRefDataRel
);
pScTokenArray
->
AddDoubleReference
(
it
r
->
aScComplexRefDataRel
);
}
}
ScRangeData
*
pData
=
new
ScRangeData
(
pLotusRoot
->
pDoc
,
pIte
r
->
aScAbsName
,
*
pScTokenArray
);
ScRangeData
*
pData
=
new
ScRangeData
(
pLotusRoot
->
pDoc
,
it
r
->
aScAbsName
,
*
pScTokenArray
);
rIndex
=
pIte
r
->
nAbsInd
=
nIntCount
;
rIndex
=
it
r
->
nAbsInd
=
nIntCount
;
pData
->
SetIndex
(
rIndex
);
pData
->
SetIndex
(
rIndex
);
nIntCount
++
;
nIntCount
++
;
...
...
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