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
5b89b1dd
Kaydet (Commit)
5b89b1dd
authored
Eyl 21, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
o3tl::sorted_vector::insert should take const parameter
Change-Id: I139f9d008770da94341b8e6c08c9247478aa186a
üst
5f91f8a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sorted_vector.hxx
o3tl/inc/o3tl/sorted_vector.hxx
+2
-3
No files found.
o3tl/inc/o3tl/sorted_vector.hxx
Dosyayı görüntüle @
5b89b1dd
...
...
@@ -134,14 +134,13 @@ public:
return
(
ret
.
second
)
?
ret
.
first
:
end
();
}
void
insert
(
sorted_vector
<
Value
,
Compare
,
Find
>
&
rOther
)
void
insert
(
sorted_vector
<
Value
,
Compare
,
Find
>
const
&
rOther
)
{
// optimisation for the rather common case that we are overwriting this with the contents
// of another sorted vector
if
(
empty
()
)
{
base_t
::
insert
(
begin_nonconst
(),
rOther
.
begin_nonconst
(),
rOther
.
end_nonconst
()
);
base_t
::
insert
(
begin_nonconst
(),
rOther
.
begin
(),
rOther
.
end
());
}
else
for
(
const_iterator
it
=
rOther
.
begin
();
it
!=
rOther
.
end
();
++
it
)
...
...
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