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
89ed0427
Kaydet (Commit)
89ed0427
authored
Eki 05, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: Iac4d1dcab229c3236d09af4e63d9e33bc038f23d
üst
68daf1e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
redlndlg.hxx
sw/source/uibase/inc/redlndlg.hxx
+2
-3
redlndlg.cxx
sw/source/uibase/misc/redlndlg.cxx
+14
-10
No files found.
sw/source/uibase/inc/redlndlg.hxx
Dosyayı görüntüle @
89ed0427
...
...
@@ -30,7 +30,6 @@
#include <sfx2/dispatch.hxx>
#include <svx/ctredlin.hxx>
#include <svx/postattr.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <o3tl/sorted_vector.hxx>
#include <memory>
...
...
@@ -60,13 +59,13 @@ struct SwRedlineDataParent
class
SwRedlineDataParentSortArr
:
public
o3tl
::
sorted_vector
<
SwRedlineDataParent
*
,
o3tl
::
less_ptr_to
<
SwRedlineDataParent
>
>
{};
typedef
boost
::
ptr_vector
<
SwRedlineDataChild
>
SwRedlineDataChildArr
;
typedef
std
::
vector
<
std
::
unique_ptr
<
SwRedlineDataChild
>
>
SwRedlineDataChildArr
;
class
SW_DLLPUBLIC
SwRedlineAcceptDlg
{
VclPtr
<
vcl
::
Window
>
pParentDlg
;
std
::
vector
<
std
::
unique_ptr
<
SwRedlineDataParent
>>
m_RedlineParents
;
SwRedlineDataChildArr
a
RedlineChildren
;
SwRedlineDataChildArr
m_
RedlineChildren
;
SwRedlineDataParentSortArr
aUsedSeqNo
;
VclPtr
<
SvxAcceptChgCtr
>
aTabPagesCTRL
;
PopupMenu
aPopup
;
...
...
sw/source/uibase/misc/redlndlg.cxx
Dosyayı görüntüle @
89ed0427
...
...
@@ -235,7 +235,7 @@ void SwRedlineAcceptDlg::Init(sal_uInt16 nStart)
else
{
pTable
->
Clear
();
a
RedlineChildren
.
clear
();
m_
RedlineChildren
.
clear
();
m_RedlineParents
.
erase
(
m_RedlineParents
.
begin
()
+
nStart
,
m_RedlineParents
.
end
());
}
...
...
@@ -504,13 +504,15 @@ sal_uInt16 SwRedlineAcceptDlg::CalcDiff(sal_uInt16 nStart, bool bChild)
if
(
pBackupData
->
pTLBChild
)
pTable
->
RemoveEntry
(
pBackupData
->
pTLBChild
);
for
(
SwRedlineDataChildArr
::
iterator
it
=
aRedlineChildren
.
begin
();
it
!=
aRedlineChildren
.
end
();
++
it
)
if
(
&*
it
==
pBackupData
)
for
(
SwRedlineDataChildArr
::
iterator
it
=
m_RedlineChildren
.
begin
();
it
!=
m_RedlineChildren
.
end
();
++
it
)
{
if
(
it
->
get
()
==
pBackupData
)
{
a
RedlineChildren
.
erase
(
it
);
m_
RedlineChildren
.
erase
(
it
);
break
;
}
}
pBackupData
=
pNext
;
}
pParent
->
pNext
=
0
;
...
...
@@ -594,7 +596,7 @@ void SwRedlineAcceptDlg::InsertChildren(SwRedlineDataParent *pParent, const SwRa
SwRedlineDataChild
*
pRedlineChild
=
new
SwRedlineDataChild
;
pRedlineChild
->
pChild
=
pRedlineData
;
aRedlineChildren
.
push_back
(
pRedlineChild
);
m_RedlineChildren
.
push_back
(
std
::
unique_ptr
<
SwRedlineDataChild
>
(
pRedlineChild
)
);
if
(
pLastRedlineChild
)
pLastRedlineChild
->
pNext
=
pRedlineChild
;
...
...
@@ -674,9 +676,10 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd)
{
SwRedlineDataChild
*
pChildPtr
=
const_cast
<
SwRedlineDataChild
*>
(
m_RedlineParents
[
i
]
->
pNext
);
for
(
SwRedlineDataChildArr
::
iterator
it
=
aRedlineChildren
.
begin
();
it
!=
aRedlineChildren
.
end
();
++
it
)
if
(
&*
it
==
pChildPtr
)
for
(
SwRedlineDataChildArr
::
iterator
it
=
m_RedlineChildren
.
begin
();
it
!=
m_RedlineChildren
.
end
();
++
it
)
{
if
(
it
->
get
()
==
pChildPtr
)
{
sal_uInt16
nChildren
=
0
;
while
(
pChildPtr
)
...
...
@@ -685,10 +688,11 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd)
nChildren
++
;
}
a
RedlineChildren
.
erase
(
it
,
it
+
nChildren
);
m_
RedlineChildren
.
erase
(
it
,
it
+
nChildren
);
bChildrenRemoved
=
true
;
break
;
}
}
}
SvTreeListEntry
*
const
pEntry
=
m_RedlineParents
[
i
]
->
pTLBParent
;
if
(
pEntry
)
...
...
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