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
3c5c11bf
Kaydet (Commit)
3c5c11bf
authored
Şub 07, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use OUStringLiteral
Change-Id: I20685c733b12ef2a7efc894091a6e40d1347ac84
üst
3783df20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
typemanager.cxx
cppuhelper/source/typemanager.cxx
+17
-20
No files found.
cppuhelper/source/typemanager.cxx
Dosyayı görüntüle @
3c5c11bf
...
@@ -1811,30 +1811,27 @@ cppuhelper::TypeManager::TypeManager():
...
@@ -1811,30 +1811,27 @@ cppuhelper::TypeManager::TypeManager():
css
::
uno
::
Any
cppuhelper
::
TypeManager
::
find
(
rtl
::
OUString
const
&
name
)
{
css
::
uno
::
Any
cppuhelper
::
TypeManager
::
find
(
rtl
::
OUString
const
&
name
)
{
//TODO: caching? (here or in unoidl::Manager?)
//TODO: caching? (here or in unoidl::Manager?)
struct
Simple
{
struct
Simple
{
char
const
*
name
;
sal_Int32
length
;
OUStringLiteral
name
;
css
::
uno
::
TypeClass
typeClass
;
css
::
uno
::
TypeClass
typeClass
;
};
};
static
Simple
const
simple
[]
=
{
static
Simple
const
simple
[]
=
{
{
RTL_CONSTASCII_STRINGPARAM
(
"void"
),
css
::
uno
::
TypeClass_VOID
},
{
"void"
,
css
::
uno
::
TypeClass_VOID
},
{
RTL_CONSTASCII_STRINGPARAM
(
"boolean"
),
css
::
uno
::
TypeClass_BOOLEAN
},
{
"boolean"
,
css
::
uno
::
TypeClass_BOOLEAN
},
{
RTL_CONSTASCII_STRINGPARAM
(
"byte"
),
css
::
uno
::
TypeClass_BYTE
},
{
"byte"
,
css
::
uno
::
TypeClass_BYTE
},
{
RTL_CONSTASCII_STRINGPARAM
(
"short"
),
css
::
uno
::
TypeClass_SHORT
},
{
"short"
,
css
::
uno
::
TypeClass_SHORT
},
{
RTL_CONSTASCII_STRINGPARAM
(
"unsigned short"
),
{
"unsigned short"
,
css
::
uno
::
TypeClass_UNSIGNED_SHORT
},
css
::
uno
::
TypeClass_UNSIGNED_SHORT
},
{
"long"
,
css
::
uno
::
TypeClass_LONG
},
{
RTL_CONSTASCII_STRINGPARAM
(
"long"
),
css
::
uno
::
TypeClass_LONG
},
{
"unsigned long"
,
css
::
uno
::
TypeClass_UNSIGNED_LONG
},
{
RTL_CONSTASCII_STRINGPARAM
(
"unsigned long"
),
{
"hyper"
,
css
::
uno
::
TypeClass_HYPER
},
css
::
uno
::
TypeClass_UNSIGNED_LONG
},
{
"unsigned hyper"
,
css
::
uno
::
TypeClass_UNSIGNED_HYPER
},
{
RTL_CONSTASCII_STRINGPARAM
(
"hyper"
),
css
::
uno
::
TypeClass_HYPER
},
{
"float"
,
css
::
uno
::
TypeClass_FLOAT
},
{
RTL_CONSTASCII_STRINGPARAM
(
"unsigned hyper"
),
{
"double"
,
css
::
uno
::
TypeClass_DOUBLE
},
css
::
uno
::
TypeClass_UNSIGNED_HYPER
},
{
"char"
,
css
::
uno
::
TypeClass_CHAR
},
{
RTL_CONSTASCII_STRINGPARAM
(
"float"
),
css
::
uno
::
TypeClass_FLOAT
},
{
"string"
,
css
::
uno
::
TypeClass_STRING
},
{
RTL_CONSTASCII_STRINGPARAM
(
"double"
),
css
::
uno
::
TypeClass_DOUBLE
},
{
"type"
,
css
::
uno
::
TypeClass_TYPE
},
{
RTL_CONSTASCII_STRINGPARAM
(
"char"
),
css
::
uno
::
TypeClass_CHAR
},
{
"any"
,
css
::
uno
::
TypeClass_ANY
}
};
{
RTL_CONSTASCII_STRINGPARAM
(
"string"
),
css
::
uno
::
TypeClass_STRING
},
{
RTL_CONSTASCII_STRINGPARAM
(
"type"
),
css
::
uno
::
TypeClass_TYPE
},
{
RTL_CONSTASCII_STRINGPARAM
(
"any"
),
css
::
uno
::
TypeClass_ANY
}
};
for
(
std
::
size_t
i
=
0
;
i
!=
SAL_N_ELEMENTS
(
simple
);
++
i
)
{
for
(
std
::
size_t
i
=
0
;
i
!=
SAL_N_ELEMENTS
(
simple
);
++
i
)
{
if
(
name
.
equalsAsciiL
(
simple
[
i
].
name
,
simple
[
i
].
length
)
)
{
if
(
name
==
simple
[
i
].
name
)
{
return
css
::
uno
::
makeAny
<
return
css
::
uno
::
makeAny
<
css
::
uno
::
Reference
<
css
::
reflection
::
XTypeDescription
>
>
(
css
::
uno
::
Reference
<
css
::
reflection
::
XTypeDescription
>
>
(
new
SimpleTypeDescription
(
simple
[
i
].
typeClass
,
name
));
new
SimpleTypeDescription
(
simple
[
i
].
typeClass
,
name
));
...
...
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