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
97b3bf8b
Kaydet (Commit)
97b3bf8b
authored
Mar 01, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't use local types as template arguments (C++11 only feature)
Change-Id: I19b7105b62464234cb72de701b07176f951a7951
üst
12353c73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
reg2unoidl.cxx
unoidl/source/reg2unoidl.cxx
+20
-17
No files found.
unoidl/source/reg2unoidl.cxx
Dosyayı görüntüle @
97b3bf8b
...
@@ -246,19 +246,31 @@ void writeKind(
...
@@ -246,19 +246,31 @@ void writeKind(
write8
(
file
,
v
);
write8
(
file
,
v
);
}
}
struct
Item
{
explicit
Item
(
rtl
::
Reference
<
unoidl
::
Entity
>
const
&
theEntity
)
:
entity
(
theEntity
)
{}
rtl
::
Reference
<
unoidl
::
Entity
>
entity
;
sal_uInt64
nameOffset
;
sal_uInt64
dataOffset
;
};
struct
ConstItem
{
explicit
ConstItem
(
unoidl
::
ConstantValue
const
&
theConstant
)
:
constant
(
theConstant
)
{}
unoidl
::
ConstantValue
constant
;
sal_uInt64
nameOffset
;
sal_uInt64
dataOffset
;
};
sal_uInt64
writeMap
(
sal_uInt64
writeMap
(
osl
::
File
&
file
,
rtl
::
Reference
<
unoidl
::
MapCursor
>
const
&
cursor
,
osl
::
File
&
file
,
rtl
::
Reference
<
unoidl
::
MapCursor
>
const
&
cursor
,
std
::
size_t
*
rootSize
)
std
::
size_t
*
rootSize
)
{
{
assert
(
cursor
.
is
());
assert
(
cursor
.
is
());
struct
Item
{
explicit
Item
(
rtl
::
Reference
<
unoidl
::
Entity
>
const
&
theEntity
)
:
entity
(
theEntity
)
{}
rtl
::
Reference
<
unoidl
::
Entity
>
entity
;
sal_uInt64
nameOffset
;
sal_uInt64
dataOffset
;
};
std
::
map
<
OUString
,
Item
>
map
;
std
::
map
<
OUString
,
Item
>
map
;
for
(;;)
{
for
(;;)
{
OUString
name
;
OUString
name
;
...
@@ -468,15 +480,6 @@ sal_uInt64 writeMap(
...
@@ -468,15 +480,6 @@ sal_uInt64 writeMap(
rtl
::
Reference
<
unoidl
::
ConstantGroupEntity
>
ent2
(
rtl
::
Reference
<
unoidl
::
ConstantGroupEntity
>
ent2
(
static_cast
<
unoidl
::
ConstantGroupEntity
*
>
(
static_cast
<
unoidl
::
ConstantGroupEntity
*
>
(
i
->
second
.
entity
.
get
()));
i
->
second
.
entity
.
get
()));
struct
ConstItem
{
explicit
ConstItem
(
unoidl
::
ConstantValue
const
&
theConstant
)
:
constant
(
theConstant
)
{}
unoidl
::
ConstantValue
constant
;
sal_uInt64
nameOffset
;
sal_uInt64
dataOffset
;
};
std
::
map
<
OUString
,
ConstItem
>
cmap
;
std
::
map
<
OUString
,
ConstItem
>
cmap
;
for
(
std
::
vector
<
unoidl
::
ConstantGroupEntity
::
Member
>::
for
(
std
::
vector
<
unoidl
::
ConstantGroupEntity
::
Member
>::
const_iterator
j
(
ent2
->
getMembers
().
begin
());
const_iterator
j
(
ent2
->
getMembers
().
begin
());
...
...
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