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
1c0371a5
Kaydet (Commit)
1c0371a5
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
Change-Id: Idff9e260f180ea4d68ae7c04414d61f5f5887f0b
üst
afc3f660
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
pptexsoundcollection.cxx
sd/source/filter/eppt/pptexsoundcollection.cxx
+6
-7
pptexsoundcollection.hxx
sd/source/filter/eppt/pptexsoundcollection.hxx
+7
-7
No files found.
sd/source/filter/eppt/pptexsoundcollection.cxx
Dosyayı görüntüle @
1c0371a5
...
@@ -154,7 +154,7 @@ sal_uInt32 ExSoundCollection::GetId(const OUString& rString)
...
@@ -154,7 +154,7 @@ sal_uInt32 ExSoundCollection::GetId(const OUString& rString)
if
(
!
rString
.
isEmpty
())
if
(
!
rString
.
isEmpty
())
{
{
const
sal_uInt32
nSoundCount
=
maEntries
.
size
();
const
sal_uInt32
nSoundCount
=
maEntries
.
size
();
boost
::
ptr_
vector
<
ExSoundEntry
>::
const_iterator
iter
;
std
::
vector
<
ExSoundEntry
>::
const_iterator
iter
;
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
nSoundId
)
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
nSoundId
)
{
{
...
@@ -164,13 +164,12 @@ sal_uInt32 ExSoundCollection::GetId(const OUString& rString)
...
@@ -164,13 +164,12 @@ sal_uInt32 ExSoundCollection::GetId(const OUString& rString)
if
(
nSoundId
++
==
nSoundCount
)
if
(
nSoundId
++
==
nSoundCount
)
{
{
ExSoundEntry
*
pEntry
=
new
ExSound
Entry
(
rString
);
ExSoundEntry
a
Entry
(
rString
);
if
(
pEntry
->
GetFileSize
()
)
if
(
aEntry
.
GetFileSize
()
)
maEntries
.
push_back
(
p
Entry
);
maEntries
.
push_back
(
a
Entry
);
else
else
{
{
nSoundId
=
0
;
// only insert sounds that are accessible
nSoundId
=
0
;
// only insert sounds that are accessible
delete
pEntry
;
}
}
}
}
}
}
...
@@ -183,7 +182,7 @@ sal_uInt32 ExSoundCollection::GetSize() const
...
@@ -183,7 +182,7 @@ sal_uInt32 ExSoundCollection::GetSize() const
if
(
!
maEntries
.
empty
())
if
(
!
maEntries
.
empty
())
{
{
nSize
+=
8
+
12
;
// size of SoundCollectionContainerHeader + SoundCollAtom
nSize
+=
8
+
12
;
// size of SoundCollectionContainerHeader + SoundCollAtom
boost
::
ptr_
vector
<
ExSoundEntry
>::
const_iterator
iter
;
std
::
vector
<
ExSoundEntry
>::
const_iterator
iter
;
sal_uInt32
i
=
1
;
sal_uInt32
i
=
1
;
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
i
)
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
i
)
nSize
+=
iter
->
GetSize
(
i
);
nSize
+=
iter
->
GetSize
(
i
);
...
@@ -204,7 +203,7 @@ void ExSoundCollection::Write( SvStream& rSt ) const
...
@@ -204,7 +203,7 @@ void ExSoundCollection::Write( SvStream& rSt ) const
// create SoundCollAtom ( reference to the next free SoundId );
// create SoundCollAtom ( reference to the next free SoundId );
rSt
.
WriteUInt32
(
EPP_SoundCollAtom
<<
16
).
WriteUInt32
(
4
).
WriteUInt32
(
nSoundCount
);
rSt
.
WriteUInt32
(
EPP_SoundCollAtom
<<
16
).
WriteUInt32
(
4
).
WriteUInt32
(
nSoundCount
);
boost
::
ptr_
vector
<
ExSoundEntry
>::
const_iterator
iter
;
std
::
vector
<
ExSoundEntry
>::
const_iterator
iter
;
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
i
)
for
(
iter
=
maEntries
.
begin
();
iter
!=
maEntries
.
end
();
++
iter
,
++
i
)
iter
->
Write
(
rSt
,
i
);
iter
->
Write
(
rSt
,
i
);
}
}
...
...
sd/source/filter/eppt/pptexsoundcollection.hxx
Dosyayı görüntüle @
1c0371a5
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef INCLUDED_SD_SOURCE_FILTER_EPPT_PPTEXSOUNDCOLLECTION_HXX
#ifndef INCLUDED_SD_SOURCE_FILTER_EPPT_PPTEXSOUNDCOLLECTION_HXX
#define INCLUDED_SD_SOURCE_FILTER_EPPT_PPTEXSOUNDCOLLECTION_HXX
#define INCLUDED_SD_SOURCE_FILTER_EPPT_PPTEXSOUNDCOLLECTION_HXX
#include <
boost/ptr_container/ptr_vector.hpp
>
#include <
vector
>
#ifdef DBG_ANIM_LOG
#ifdef DBG_ANIM_LOG
#include <stdio.h>
#include <stdio.h>
...
@@ -34,7 +34,7 @@ namespace ppt
...
@@ -34,7 +34,7 @@ namespace ppt
class
ExSoundEntry
class
ExSoundEntry
{
{
sal_uInt32
nFileSize
;
sal_uInt32
nFileSize
;
OUString
aSoundURL
;
OUString
aSoundURL
;
OUString
ImplGetName
()
const
;
OUString
ImplGetName
()
const
;
...
@@ -43,13 +43,13 @@ class ExSoundEntry
...
@@ -43,13 +43,13 @@ class ExSoundEntry
public
:
public
:
bool
IsSameURL
(
const
OUString
&
rURL
)
const
;
bool
IsSameURL
(
const
OUString
&
rURL
)
const
;
sal_uInt32
GetFileSize
(
)
const
{
return
nFileSize
;
};
sal_uInt32
GetFileSize
(
)
const
{
return
nFileSize
;
};
ExSoundEntry
(
const
OUString
&
rSoundURL
);
ExSoundEntry
(
const
OUString
&
rSoundURL
);
/// @return size of a complete SoundContainer.
/// @return size of a complete SoundContainer.
sal_uInt32
GetSize
(
sal_uInt32
nId
)
const
;
sal_uInt32
GetSize
(
sal_uInt32
nId
)
const
;
void
Write
(
SvStream
&
rSt
,
sal_uInt32
nId
)
const
;
void
Write
(
SvStream
&
rSt
,
sal_uInt32
nId
)
const
;
};
};
class
ExSoundCollection
class
ExSoundCollection
...
@@ -64,7 +64,7 @@ class ExSoundCollection
...
@@ -64,7 +64,7 @@ class ExSoundCollection
private
:
private
:
boost
::
ptr_
vector
<
ExSoundEntry
>
maEntries
;
std
::
vector
<
ExSoundEntry
>
maEntries
;
};
};
}
// namespace ppt
}
// namespace ppt
...
...
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