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
05874170
Kaydet (Commit)
05874170
authored
Eki 13, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use comphelper::SequenceAsVector
Change-Id: I0af333551bdd32400b795d37de0d6240e68dd6b6
üst
1175b25b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
DomainMapper_Impl.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx
+6
-16
No files found.
writerfilter/source/dmapper/DomainMapper_Impl.cxx
Dosyayı görüntüle @
05874170
...
@@ -589,25 +589,15 @@ void DomainMapper_Impl::IncorporateTabStop( const DeletableTabStop & rTabStop )
...
@@ -589,25 +589,15 @@ void DomainMapper_Impl::IncorporateTabStop( const DeletableTabStop & rTabStop )
uno
::
Sequence
<
style
::
TabStop
>
DomainMapper_Impl
::
GetCurrentTabStopAndClear
()
uno
::
Sequence
<
style
::
TabStop
>
DomainMapper_Impl
::
GetCurrentTabStopAndClear
()
{
{
uno
::
Sequence
<
style
::
TabStop
>
aRet
(
sal_Int32
(
m_aCurrentTabStops
.
size
()
)
);
comphelper
::
SequenceAsVector
<
style
::
TabStop
>
aRet
;
style
::
TabStop
*
pArray
=
aRet
.
getArray
();
for
(
DeletableTabStop
&
rStop
:
m_aCurrentTabStops
)
::
std
::
vector
<
DeletableTabStop
>::
const_iterator
aIt
=
m_aCurrentTabStops
.
begin
();
{
::
std
::
vector
<
DeletableTabStop
>::
const_iterator
aEndIt
=
m_aCurrentTabStops
.
end
();
if
(
!
rStop
.
bDeleted
)
sal_Int32
nDeleted
=
0
;
aRet
.
push_back
(
rStop
);
for
(
sal_Int32
nIndex
=
0
;
aIt
!=
aEndIt
;
++
aIt
)
{
if
(
!
aIt
->
bDeleted
)
pArray
[
nIndex
++
]
=
*
aIt
;
else
++
nDeleted
;
}
}
m_aCurrentTabStops
.
clear
();
m_aCurrentTabStops
.
clear
();
m_nCurrentTabStopIndex
=
0
;
m_nCurrentTabStopIndex
=
0
;
if
(
nDeleted
)
return
aRet
.
getAsConstList
();
{
aRet
.
realloc
(
aRet
.
getLength
()
-
nDeleted
);
}
return
aRet
;
}
}
/*-------------------------------------------------------------------------
/*-------------------------------------------------------------------------
...
...
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