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
b2e84f9a
Kaydet (Commit)
b2e84f9a
authored
Kas 23, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
std::map::erase takes a nonconst iterator
üst
7434fa5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
swcrsr.hxx
sw/inc/swcrsr.hxx
+2
-2
swcrsr.cxx
sw/source/core/crsr/swcrsr.cxx
+5
-4
cellfml.cxx
sw/source/core/fields/cellfml.cxx
+2
-2
No files found.
sw/inc/swcrsr.hxx
Dosyayı görüntüle @
b2e84f9a
...
...
@@ -283,8 +283,8 @@ public:
virtual
sal_Bool
GotoTable
(
const
String
&
rName
);
void
InsertBox
(
const
SwTableBox
&
rTblBox
);
void
DeleteBox
(
SwSelBoxes
::
const_
iterator
it
)
{
aSelBoxes
.
erase
(
it
);
bChg
=
sal_True
;
}
void
DeleteBox
(
SwSelBoxes
::
const_iterator
itFirst
,
SwSelBoxes
::
const_
iterator
itLast
)
{
aSelBoxes
.
erase
(
itFirst
,
itLast
);
bChg
=
sal_True
;
}
void
DeleteBox
(
SwSelBoxes
::
iterator
it
)
{
aSelBoxes
.
erase
(
it
);
bChg
=
sal_True
;
}
void
DeleteBox
(
SwSelBoxes
::
iterator
itFirst
,
SwSelBoxes
::
iterator
itLast
)
{
aSelBoxes
.
erase
(
itFirst
,
itLast
);
bChg
=
sal_True
;
}
void
DeleteAllBoxes
()
{
DeleteBox
(
aSelBoxes
.
begin
(),
aSelBoxes
.
end
());
}
sal_uInt16
GetBoxesCount
()
const
{
return
aSelBoxes
.
size
();
}
const
SwSelBoxes
&
GetBoxes
()
const
{
return
aSelBoxes
;
}
...
...
sw/source/core/crsr/swcrsr.cxx
Dosyayı görüntüle @
b2e84f9a
...
...
@@ -2165,8 +2165,9 @@ SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr )
else
{
SwSelBoxes
::
const_iterator
it
=
aTmp
.
find
(
pSttNd
->
GetIndex
());
if
(
it
!=
aTmp
.
end
()
)
{
SwSelBoxes
::
iterator
it
=
aTmp
.
find
(
pSttNd
->
GetIndex
());
if
(
it
!=
aTmp
.
end
()
)
{
SwNodeIndex
aIdx
(
*
pSttNd
,
1
);
const
SwNode
*
pNd
=
&
aIdx
.
GetNode
();
if
(
!
pNd
->
IsCntntNode
()
)
...
...
@@ -2272,7 +2273,7 @@ bool SwTableCursor::NewTableSelection()
void
SwTableCursor
::
ActualizeSelection
(
const
SwSelBoxes
&
rNew
)
{
SwSelBoxes
::
const_
iterator
itOld
=
aSelBoxes
.
begin
();
SwSelBoxes
::
iterator
itOld
=
aSelBoxes
.
begin
();
SwSelBoxes
::
const_iterator
itNew
=
rNew
.
begin
();
while
(
itOld
!=
aSelBoxes
.
end
()
&&
itNew
!=
rNew
.
end
()
)
{
...
...
@@ -2285,7 +2286,7 @@ void SwTableCursor::ActualizeSelection( const SwSelBoxes &rNew )
}
else
if
(
pPOld
->
GetSttIdx
()
<
pPNew
->
GetSttIdx
()
)
{
SwSelBoxes
::
const_
iterator
it
=
itOld
;
SwSelBoxes
::
iterator
it
=
itOld
;
++
itOld
;
DeleteBox
(
it
);
// this box has to go
}
...
...
sw/source/core/fields/cellfml.cxx
Dosyayı görüntüle @
b2e84f9a
...
...
@@ -349,7 +349,7 @@ void SwTableFormula::_MakeFormel( const SwTable& rTbl, String& rNewStr,
rNewStr
+=
'('
;
bool
bDelim
=
false
;
for
(
SwSelBoxes
::
const_
iterator
it
=
aBoxes
.
begin
();
for
(
SwSelBoxes
::
iterator
it
=
aBoxes
.
begin
();
it
!=
aBoxes
.
end
()
&&
!
pCalcPara
->
rCalc
.
IsCalcError
();
++
it
)
{
...
...
@@ -960,7 +960,7 @@ void SwTableFormula::GetBoxes( const SwTableBox& rSttBox,
break
;
// dann mal die Tabellenkoepfe raus:
for
(
SwSelBoxes
::
const_
iterator
it
=
rBoxes
.
begin
();
it
!=
rBoxes
.
end
();
++
it
)
for
(
SwSelBoxes
::
iterator
it
=
rBoxes
.
begin
();
it
!=
rBoxes
.
end
();
++
it
)
{
pLine
=
it
->
second
->
GetUpper
();
while
(
pLine
->
GetUpper
()
)
...
...
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