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
788587b1
Kaydet (Commit)
788587b1
authored
Kas 11, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I0950b732f60a7b75d87da520f8cbc131d1a04137
üst
9304ce96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
propread.cxx
sd/source/filter/ppt/propread.cxx
+6
-5
propread.hxx
sd/source/filter/ppt/propread.hxx
+1
-2
No files found.
sd/source/filter/ppt/propread.cxx
Dosyayı görüntüle @
788587b1
...
...
@@ -566,16 +566,16 @@ PropRead::PropRead( SotStorage& rStorage, const OUString& rName ) :
void
PropRead
::
AddSection
(
Section
&
rSection
)
{
maSections
.
push_back
(
new
Section
(
rSection
)
);
maSections
.
push_back
(
o3tl
::
make_unique
<
Section
>
(
rSection
)
);
}
const
Section
*
PropRead
::
GetSection
(
const
sal_uInt8
*
pFMTID
)
{
boost
::
ptr_vector
<
Section
>::
iterator
it
;
std
::
vector
<
std
::
unique_ptr
<
Section
>
>::
iterator
it
;
for
(
it
=
maSections
.
begin
();
it
!=
maSections
.
end
();
++
it
)
{
if
(
memcmp
(
it
->
GetFMTID
(),
pFMTID
,
16
)
==
0
)
return
&
(
*
it
);
if
(
memcmp
(
(
*
it
)
->
GetFMTID
(),
pFMTID
,
16
)
==
0
)
return
it
->
get
(
);
}
return
nullptr
;
}
...
...
@@ -628,7 +628,8 @@ PropRead& PropRead::operator=( const PropRead& rPropRead )
mnVersionHi
=
rPropRead
.
mnVersionHi
;
memcpy
(
mApplicationCLSID
,
rPropRead
.
mApplicationCLSID
,
16
);
maSections
=
rPropRead
.
maSections
.
clone
();
for
(
const
std
::
unique_ptr
<
Section
>&
rSection
:
rPropRead
.
maSections
)
maSections
.
push_back
(
o3tl
::
make_unique
<
Section
>
(
*
rSection
.
get
()));
}
return
*
this
;
}
...
...
sd/source/filter/ppt/propread.hxx
Dosyayı görüntüle @
788587b1
...
...
@@ -23,7 +23,6 @@
#include <map>
#include <vector>
#include <memory>
#include <boost/ptr_container/ptr_vector.hpp>
#include <sal/types.h>
#include <sot/storage.hxx>
...
...
@@ -148,7 +147,7 @@ class PropRead
sal_uInt16
mnVersionLo
;
sal_uInt16
mnVersionHi
;
sal_uInt8
mApplicationCLSID
[
16
];
boost
::
ptr_vector
<
Section
>
maSections
;
std
::
vector
<
std
::
unique_ptr
<
Section
>
>
maSections
;
void
AddSection
(
Section
&
rSection
);
...
...
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