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
51ec031f
Kaydet (Commit)
51ec031f
authored
Eki 29, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove use of SvTreeEntryList from RemoveSelection.
Change-Id: I8ed7ed76536cb71eff9f7a362220462f0ec112e3
üst
9d131fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
treelistbox.cxx
svtools/source/contnr/treelistbox.cxx
+5
-7
No files found.
svtools/source/contnr/treelistbox.cxx
Dosyayı görüntüle @
51ec031f
...
...
@@ -49,6 +49,7 @@
#include <set>
#include <string.h>
#include <vector>
using
namespace
::
com
::
sun
::
star
::
accessibility
;
...
...
@@ -812,7 +813,7 @@ sal_Bool SvTreeListBox::MoveSelectionCopyFallbackPossible( SvTreeListBox* pSourc
void
SvTreeListBox
::
RemoveSelection
()
{
DBG_CHKTHIS
(
SvTreeListBox
,
0
);
SvTreeEntryList
aList
;
std
::
vector
<
const
SvTreeListEntry
*>
aList
;
// cache selection, as the implementation deselects everything on the first
// remove
SvTreeListEntry
*
pEntry
=
FirstSelected
();
...
...
@@ -821,16 +822,13 @@ void SvTreeListBox::RemoveSelection()
aList
.
push_back
(
pEntry
);
if
(
pEntry
->
HasChildren
()
)
// remove deletes all children automatically
SelectChildren
(
pEntry
,
sal_False
);
SelectChildren
(
pEntry
,
false
);
pEntry
=
NextSelected
(
pEntry
);
}
SvTreeEntryList
::
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
std
::
vector
<
const
SvTreeListEntry
*>::
const_
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
pEntry
=
static_cast
<
SvTreeListEntry
*>
(
*
it
);
pModel
->
Remove
(
pEntry
);
}
pModel
->
Remove
(
*
it
);
}
SvTreeListBox
*
SvTreeListBox
::
GetSourceView
()
const
...
...
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