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
9149faa1
Kaydet (Commit)
9149faa1
authored
Kas 11, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I497702f3cdde1db0712d030756b9850d48d67380
üst
47612d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bindings.cxx
sfx2/source/control/bindings.cxx
+4
-4
No files found.
sfx2/source/control/bindings.cxx
Dosyayı görüntüle @
9149faa1
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
#include <com/sun/star/frame/XModuleManager.hpp>
#include <com/sun/star/frame/XModuleManager.hpp>
#include <memory>
#include <memory>
#include <boost/ptr_container/ptr_vector.hpp>
#include <unordered_map>
#include <unordered_map>
#include <vector>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
@@ -100,14 +100,14 @@ struct SfxFoundCache_Impl
...
@@ -100,14 +100,14 @@ struct SfxFoundCache_Impl
class
SfxFoundCacheArr_Impl
class
SfxFoundCacheArr_Impl
{
{
typedef
boost
::
ptr_vector
<
SfxFoundCache_Impl
>
DataType
;
typedef
std
::
vector
<
std
::
unique_ptr
<
SfxFoundCache_Impl
>
>
DataType
;
DataType
maData
;
DataType
maData
;
public
:
public
:
SfxFoundCache_Impl
&
operator
[]
(
size_t
i
)
SfxFoundCache_Impl
&
operator
[]
(
size_t
i
)
{
{
return
maData
[
i
]
;
return
*
maData
[
i
].
get
()
;
}
}
size_t
size
()
const
size_t
size
()
const
...
@@ -117,7 +117,7 @@ public:
...
@@ -117,7 +117,7 @@ public:
void
push_back
(
SfxFoundCache_Impl
*
p
)
void
push_back
(
SfxFoundCache_Impl
*
p
)
{
{
maData
.
push_back
(
p
);
maData
.
push_back
(
std
::
unique_ptr
<
SfxFoundCache_Impl
>
(
p
)
);
}
}
};
};
...
...
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