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
3de4481f
Kaydet (Commit)
3de4481f
authored
Agu 07, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmloff: replace boost::ptr_set with std::set
Change-Id: Idc03bf695d94f47f2057629b4175c2bdf3a83f22
üst
d7b4e6b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
xmltkmap.hxx
include/xmloff/xmltkmap.hxx
+1
-5
xmltkmap.cxx
xmloff/source/core/xmltkmap.cxx
+15
-11
No files found.
include/xmloff/xmltkmap.hxx
Dosyayı görüntüle @
3de4481f
...
...
@@ -27,7 +27,6 @@
class
SvXMLTokenMap_Impl
;
class
SvXMLTokenMapEntry_Impl
;
#define XML_TOK_UNKNOWN 0xffffU
#define XML_TOKEN_MAP_END { 0xffffU, ::xmloff::token::XML_TOKEN_INVALID, 0U }
...
...
@@ -41,10 +40,7 @@ struct SvXMLTokenMapEntry
class
XMLOFF_DLLPUBLIC
SvXMLTokenMap
{
SvXMLTokenMap_Impl
*
pImpl
;
SAL_DLLPRIVATE
SvXMLTokenMapEntry_Impl
*
_Find
(
sal_uInt16
nKind
,
const
OUString
&
rName
)
const
;
SvXMLTokenMap_Impl
*
m_pImpl
;
public
:
...
...
xmloff/source/core/xmltkmap.cxx
Dosyayı görüntüle @
3de4481f
...
...
@@ -20,7 +20,8 @@
#include <rtl/ustring.hxx>
#include <xmloff/xmltkmap.hxx>
#include <xmloff/xmltoken.hxx>
#include <boost/ptr_container/ptr_set.hpp>
#include <set>
using
namespace
::
xmloff
::
token
;
...
...
@@ -55,16 +56,18 @@ public:
}
};
class
SvXMLTokenMap_Impl
:
public
boost
::
ptr_
set
<
SvXMLTokenMapEntry_Impl
>
{};
class
SvXMLTokenMap_Impl
:
public
std
::
set
<
SvXMLTokenMapEntry_Impl
>
{};
SvXMLTokenMapEntry_Impl
*
SvXMLTokenMap
::
_Find
(
sal_uInt16
nKeyPrefix
,
const
OUString
&
rLName
)
const
SvXMLTokenMapEntry_Impl
const
*
lcl_Find
(
SvXMLTokenMap_Impl
const
*
pImpl
,
sal_uInt16
nKeyPrefix
,
const
OUString
&
rLName
)
{
SvXMLTokenMapEntry_Impl
*
pRet
=
0
;
SvXMLTokenMapEntry_Impl
const
*
pRet
=
nullptr
;
SvXMLTokenMapEntry_Impl
aTst
(
nKeyPrefix
,
rLName
);
SvXMLTokenMap_Impl
::
iterator
it
=
pImpl
->
find
(
aTst
);
if
(
it
!=
pImpl
->
end
()
)
if
(
it
!=
pImpl
->
end
()
)
{
pRet
=
&*
it
;
}
...
...
@@ -72,25 +75,26 @@ SvXMLTokenMapEntry_Impl *SvXMLTokenMap::_Find( sal_uInt16 nKeyPrefix,
return
pRet
;
}
SvXMLTokenMap
::
SvXMLTokenMap
(
const
SvXMLTokenMapEntry
*
pMap
)
:
pImpl
(
new
SvXMLTokenMap_Impl
)
SvXMLTokenMap
::
SvXMLTokenMap
(
const
SvXMLTokenMapEntry
*
pMap
)
:
m_
pImpl
(
new
SvXMLTokenMap_Impl
)
{
while
(
pMap
->
eLocalName
!=
XML_TOKEN_INVALID
)
{
pImpl
->
insert
(
new
SvXMLTokenMapEntry_Impl
(
*
pMap
)
);
m_pImpl
->
insert
(
SvXMLTokenMapEntry_Impl
(
*
pMap
)
);
pMap
++
;
}
}
SvXMLTokenMap
::~
SvXMLTokenMap
()
{
delete
pImpl
;
delete
m_
pImpl
;
}
sal_uInt16
SvXMLTokenMap
::
Get
(
sal_uInt16
nKeyPrefix
,
const
OUString
&
rLName
)
const
{
SvXMLTokenMapEntry_Impl
*
pEntry
=
_Find
(
nKeyPrefix
,
rLName
);
SvXMLTokenMapEntry_Impl
const
*
const
pEntry
(
lcl_Find
(
m_pImpl
,
nKeyPrefix
,
rLName
));
if
(
pEntry
)
return
pEntry
->
GetToken
();
else
...
...
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