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
8522c20c
Kaydet (Commit)
8522c20c
authored
Ara 09, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: replace boost::ptr_map with std::map<std::unique_ptr>
Change-Id: Idabd8facd21efb2da3e46185272d76bce2d0b44c
üst
7086ed59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
callform.cxx
sc/source/core/tool/callform.cxx
+6
-7
No files found.
sc/source/core/tool/callform.cxx
Dosyayı görüntüle @
8522c20c
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <osl/file.hxx>
#include <osl/file.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <o3tl/make_unique.hxx>
#include <o3tl/make_unique.hxx>
#include <boost/ptr_container/ptr_map.hpp>
#include <memory>
#include <memory>
#include "callform.hxx"
#include "callform.hxx"
...
@@ -125,8 +124,8 @@ namespace {
...
@@ -125,8 +124,8 @@ namespace {
class
ModuleCollection
class
ModuleCollection
{
{
typedef
boost
::
ptr_map
<
OUString
,
ModuleData
>
MapType
;
typedef
std
::
map
<
OUString
,
std
::
unique_ptr
<
ModuleData
>
>
MapType
;
MapType
m
a
Data
;
MapType
m
_
Data
;
public
:
public
:
ModuleCollection
()
{}
ModuleCollection
()
{}
...
@@ -137,8 +136,8 @@ public:
...
@@ -137,8 +136,8 @@ public:
const
ModuleData
*
ModuleCollection
::
findByName
(
const
OUString
&
rName
)
const
const
ModuleData
*
ModuleCollection
::
findByName
(
const
OUString
&
rName
)
const
{
{
MapType
::
const_iterator
it
=
m
a
Data
.
find
(
rName
);
MapType
::
const_iterator
it
=
m
_
Data
.
find
(
rName
);
return
it
==
m
aData
.
end
()
?
nullptr
:
it
->
second
;
return
it
==
m
_Data
.
end
()
?
nullptr
:
it
->
second
.
get
()
;
}
}
void
ModuleCollection
::
insert
(
ModuleData
*
pNew
)
void
ModuleCollection
::
insert
(
ModuleData
*
pNew
)
...
@@ -147,12 +146,12 @@ void ModuleCollection::insert(ModuleData* pNew)
...
@@ -147,12 +146,12 @@ void ModuleCollection::insert(ModuleData* pNew)
return
;
return
;
OUString
aName
=
pNew
->
GetName
();
OUString
aName
=
pNew
->
GetName
();
m
aData
.
insert
(
aName
,
pNew
);
m
_Data
.
insert
(
std
::
make_pair
(
aName
,
std
::
unique_ptr
<
ModuleData
>
(
pNew
))
);
}
}
void
ModuleCollection
::
clear
()
void
ModuleCollection
::
clear
()
{
{
m
a
Data
.
clear
();
m
_
Data
.
clear
();
}
}
ModuleCollection
aModuleCollection
;
ModuleCollection
aModuleCollection
;
...
...
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