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
429b6af3
Kaydet (Commit)
429b6af3
authored
Eki 01, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svl: std::auto_ptr -> std::unique_ptr
Change-Id: I1b8a52a92ecd465c19fb368ba206b4fdd6d86364
üst
3ed902fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
inettype.cxx
svl/source/misc/inettype.cxx
+13
-4
No files found.
svl/source/misc/inettype.cxx
Dosyayı görüntüle @
429b6af3
...
@@ -17,6 +17,11 @@
...
@@ -17,6 +17,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <sal/config.h>
#include <utility>
#include <o3tl/ptr_container.hxx>
#include <tools/wldcrd.hxx>
#include <tools/wldcrd.hxx>
#include <tools/inetmime.hxx>
#include <tools/inetmime.hxx>
#include <rtl/instance.hxx>
#include <rtl/instance.hxx>
...
@@ -462,17 +467,21 @@ INetContentType Registration::RegisterContentType(OUString const & rTypeName,
...
@@ -462,17 +467,21 @@ INetContentType Registration::RegisterContentType(OUString const & rTypeName,
pTypeIDMapEntry
->
m_aSystemFileType
=
*
pSystemFileType
;
pTypeIDMapEntry
->
m_aSystemFileType
=
*
pSystemFileType
;
rRegistration
.
m_aTypeIDMap
.
insert
(
::
std
::
make_pair
(
eTypeID
,
pTypeIDMapEntry
)
);
rRegistration
.
m_aTypeIDMap
.
insert
(
::
std
::
make_pair
(
eTypeID
,
pTypeIDMapEntry
)
);
std
::
auto
_ptr
<
TypeNameMapEntry
>
pTypeNameMapEntry
(
new
TypeNameMapEntry
());
std
::
unique
_ptr
<
TypeNameMapEntry
>
pTypeNameMapEntry
(
new
TypeNameMapEntry
());
if
(
pExtension
)
if
(
pExtension
)
pTypeNameMapEntry
->
m_aExtension
=
*
pExtension
;
pTypeNameMapEntry
->
m_aExtension
=
*
pExtension
;
pTypeNameMapEntry
->
m_eTypeID
=
eTypeID
;
pTypeNameMapEntry
->
m_eTypeID
=
eTypeID
;
rRegistration
.
m_aTypeNameMap
.
insert
(
aTheTypeName
,
pTypeNameMapEntry
);
o3tl
::
ptr_container
::
insert
(
rRegistration
.
m_aTypeNameMap
,
aTheTypeName
,
std
::
move
(
pTypeNameMapEntry
));
if
(
pExtension
)
if
(
pExtension
)
{
{
std
::
auto
_ptr
<
ExtensionMapEntry
>
pExtensionMapEntry
(
new
ExtensionMapEntry
());
std
::
unique
_ptr
<
ExtensionMapEntry
>
pExtensionMapEntry
(
new
ExtensionMapEntry
());
pExtensionMapEntry
->
m_eTypeID
=
eTypeID
;
pExtensionMapEntry
->
m_eTypeID
=
eTypeID
;
rRegistration
.
m_aExtensionMap
.
insert
(
*
pExtension
,
pExtensionMapEntry
);
o3tl
::
ptr_container
::
insert
(
rRegistration
.
m_aExtensionMap
,
*
pExtension
,
std
::
move
(
pExtensionMapEntry
));
}
}
return
eTypeID
;
return
eTypeID
;
...
...
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