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
50637913
Kaydet (Commit)
50637913
authored
Tem 09, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: avoid PropValVector inheriting from an STL container
Change-Id: Ic77b40ef7b518ad34b60530984fb6180d4426e39
üst
2e99e4e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
StyleSheetTable.cxx
writerfilter/source/dmapper/StyleSheetTable.cxx
+13
-13
No files found.
writerfilter/source/dmapper/StyleSheetTable.cxx
Dosyayı görüntüle @
50637913
...
...
@@ -866,9 +866,9 @@ void StyleSheetTable::lcl_entry(int /*pos*/, writerfilter::Reference<Properties>
/*-------------------------------------------------------------------------
sorting helper
-----------------------------------------------------------------------*/
typedef
std
::
vector
<
beans
::
PropertyValue
>
_PropValVector
;
class
PropValVector
:
public
_PropValVector
class
PropValVector
{
std
::
vector
<
beans
::
PropertyValue
>
m_aValues
;
public
:
PropValVector
(){}
...
...
@@ -879,25 +879,25 @@ public:
void
PropValVector
::
Insert
(
const
beans
::
PropertyValue
&
rVal
)
{
_PropValVector
::
iterator
aIt
=
begin
();
while
(
aIt
!=
end
())
auto
aIt
=
m_aValues
.
begin
();
while
(
aIt
!=
m_aValues
.
end
())
{
if
(
aIt
->
Name
>
rVal
.
Name
)
if
(
aIt
->
Name
>
rVal
.
Name
)
{
insert
(
aIt
,
rVal
);
m_aValues
.
insert
(
aIt
,
rVal
);
return
;
}
++
aIt
;
}
push_back
(
rVal
);
m_aValues
.
push_back
(
rVal
);
}
uno
::
Sequence
<
uno
::
Any
>
PropValVector
::
getValues
()
{
uno
::
Sequence
<
uno
::
Any
>
aRet
(
size
()
);
uno
::
Sequence
<
uno
::
Any
>
aRet
(
m_aValues
.
size
()
);
uno
::
Any
*
pValues
=
aRet
.
getArray
();
sal_Int32
nVal
=
0
;
_PropValVector
::
iterator
aIt
=
begin
();
while
(
aIt
!=
end
())
auto
aIt
=
m_aValues
.
begin
();
while
(
aIt
!=
m_aValues
.
end
())
{
pValues
[
nVal
++
]
=
aIt
->
Value
;
++
aIt
;
...
...
@@ -906,11 +906,11 @@ uno::Sequence< uno::Any > PropValVector::getValues()
}
uno
::
Sequence
<
OUString
>
PropValVector
::
getNames
()
{
uno
::
Sequence
<
OUString
>
aRet
(
size
()
);
uno
::
Sequence
<
OUString
>
aRet
(
m_aValues
.
size
()
);
OUString
*
pNames
=
aRet
.
getArray
();
sal_Int32
nVal
=
0
;
_PropValVector
::
iterator
aIt
=
begin
();
while
(
aIt
!=
end
())
auto
aIt
=
m_aValues
.
begin
();
while
(
aIt
!=
m_aValues
.
end
())
{
pNames
[
nVal
++
]
=
aIt
->
Name
;
++
aIt
;
...
...
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