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
0c8ae56c
Kaydet (Commit)
0c8ae56c
authored
Agu 06, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Tor Lillqvist
Agu 08, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_REF_LIST(SvBaseLink) to std::vector
Change-Id: Id397c5993cd6562ff3400dc63a9e2678d05732cf
üst
3d8f8441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
linkdlg.cxx
cui/source/dialogs/linkdlg.cxx
+20
-5
No files found.
cui/source/dialogs/linkdlg.cxx
Dosyayı görüntüle @
0c8ae56c
...
...
@@ -56,8 +56,23 @@
using
namespace
sfx2
;
SV_DECL_REF_LIST
(
SvBaseLink
,
SvBaseLink
*
)
SV_IMPL_REF_LIST
(
SvBaseLink
,
SvBaseLink
*
)
class
SvBaseLinkMemberList
:
private
std
::
vector
<
SvBaseLink
*>
{
public
:
~
SvBaseLinkMemberList
()
{
for
(
const_iterator
it
=
begin
();
it
!=
end
();
++
it
)
{
SvBaseLink
*
p
=
*
it
;
if
(
p
)
p
->
ReleaseReference
();
}
}
using
std
::
vector
<
SvBaseLink
*>::
size
;
using
std
::
vector
<
SvBaseLink
*>::
operator
[];
void
push_back
(
SvBaseLink
*
p
)
{
std
::
vector
<
SvBaseLink
*>::
push_back
(
p
);
p
->
AddRef
();
}
};
// attention, this array is indexed directly (0, 1, ...) in the code
static
long
nTabs
[]
=
...
...
@@ -442,13 +457,13 @@ IMPL_LINK( SvBaseLinksDlg, BreakLinkClickHdl, PushButton *, pPushButton )
{
void
*
pUD
=
pEntry
->
GetUserData
();
if
(
pUD
)
aLinkList
.
Append
(
(
SvBaseLink
*
)
pUD
);
aLinkList
.
push_back
(
(
SvBaseLink
*
)
pUD
);
pEntry
=
Links
().
NextSelected
(
pEntry
);
}
Links
().
RemoveSelection
();
for
(
sal_uLong
i
=
0
;
i
<
aLinkList
.
Count
();
i
++
)
for
(
sal_uLong
i
=
0
;
i
<
aLinkList
.
size
();
i
++
)
{
SvBaseLinkRef
xLink
=
aLinkList
.
GetObject
(
i
)
;
SvBaseLinkRef
xLink
=
aLinkList
[
i
]
;
// tell the link that it will be resolved!
xLink
->
Closed
();
...
...
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