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
e2931bce
Kaydet (Commit)
e2931bce
authored
Nis 08, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert RTMethodMode to scoped enum
Change-Id: I81599570698eb92abf14fa6386d8545c2031e863
üst
0833143c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
31 deletions
+31
-31
astdump.cxx
idlc/source/astdump.cxx
+3
-3
astoperation.cxx
idlc/source/astoperation.cxx
+1
-1
types.h
include/registry/types.h
+8
-8
reflread.cxx
registry/source/reflread.cxx
+2
-2
reflwrit.cxx
registry/source/reflwrit.cxx
+1
-1
regimpl.cxx
registry/source/regimpl.cxx
+4
-4
testregcpp.cxx
registry/test/testregcpp.cxx
+1
-1
regcompare.cxx
registry/tools/regcompare.cxx
+4
-4
legacyprovider.cxx
unoidl/source/legacyprovider.cxx
+7
-7
No files found.
idlc/source/astdump.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -302,7 +302,7 @@ bool AstService::dump(RegistryKey& rKey)
}
if
(
m_defaultConstructor
)
{
writer
.
setMethodData
(
constructorIndex
++
,
emptyStr
,
RT
_MODE_
TWOWAY
,
constructorIndex
++
,
emptyStr
,
RT
MethodMode
::
TWOWAY
,
emptyStr
,
OUString
(
"void"
),
0
,
0
);
}
...
...
@@ -374,10 +374,10 @@ bool AstAttribute::dumpBlob(
OStringToOUString
(
getType
()
->
getRelativName
(),
RTL_TEXTENCODING_UTF8
),
RTConstValue
());
dumpExceptions
(
rBlob
,
m_getDocumentation
,
m_getExceptions
,
RT
_MODE_
ATTRIBUTE_GET
,
rBlob
,
m_getDocumentation
,
m_getExceptions
,
RT
MethodMode
::
ATTRIBUTE_GET
,
methodIndex
);
dumpExceptions
(
rBlob
,
m_setDocumentation
,
m_setExceptions
,
RT
_MODE_
ATTRIBUTE_SET
,
rBlob
,
m_setDocumentation
,
m_setExceptions
,
RT
MethodMode
::
ATTRIBUTE_SET
,
methodIndex
);
return
true
;
...
...
idlc/source/astoperation.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -42,7 +42,7 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
{
sal_uInt16
nParam
=
getNodeCount
(
NT_parameter
);
sal_uInt16
nExcep
=
nExceptions
();
RTMethodMode
methodMode
=
RT
_MODE_
TWOWAY
;
RTMethodMode
methodMode
=
RT
MethodMode
::
TWOWAY
;
OUString
returnTypeName
;
if
(
m_pReturnType
==
0
)
{
...
...
include/registry/types.h
Dosyayı görüntüle @
e2931bce
...
...
@@ -232,21 +232,21 @@ union RTConstValueUnion {
A method can be synchron or asynchron (oneway). The const attribute for
methods was removed so that the const values are deprecated.
*/
enum
RTMethodMode
{
enum
class
RTMethodMode
{
/// indicates an invalid mode
RT_MODE_
INVALID
,
INVALID
,
/// indicates the asynchronous mode of a method
RT_MODE_
ONEWAY
,
ONEWAY
,
/// @deprecated
RT_MODE_
ONEWAY_CONST
,
ONEWAY_CONST
,
/// indicated the synchronous mode of a method
RT_MODE_
TWOWAY
,
TWOWAY
,
/// @deprecated
RT_MODE_
TWOWAY_CONST
,
TWOWAY_CONST
,
/**
Indicates an extended attribute getter (that has a 'raises' clause) of an
...
...
@@ -254,7 +254,7 @@ enum RTMethodMode {
@since UDK 3.2.0
*/
RT_MODE_
ATTRIBUTE_GET
,
ATTRIBUTE_GET
,
/**
Indicates an extended attribute setter (that has a 'raises' clause) of an
...
...
@@ -262,7 +262,7 @@ enum RTMethodMode {
@since UDK 3.2.0
*/
RT_MODE_
ATTRIBUTE_SET
ATTRIBUTE_SET
};
/** specifies the mode of a parameter.
...
...
registry/source/reflread.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -1132,7 +1132,7 @@ const sal_Char* MethodList::getMethodReturnType(sal_uInt16 index)
RTMethodMode
MethodList
::
getMethodMode
(
sal_uInt16
index
)
{
RTMethodMode
aMode
=
RT
_MODE_
INVALID
;
RTMethodMode
aMode
=
RT
MethodMode
::
INVALID
;
if
((
m_numOfEntries
>
0
)
&&
(
index
<=
m_numOfEntries
))
{
...
...
@@ -1730,7 +1730,7 @@ RTMethodMode TYPEREG_CALLTYPE typereg_reader_getMethodFlags(void * hEntry, sal_u
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
if
(
pEntry
==
NULL
)
return
RT
_MODE_
INVALID
;
if
(
pEntry
==
NULL
)
return
RT
MethodMode
::
INVALID
;
return
pEntry
->
m_pMethods
->
getMethodMode
(
index
);
}
...
...
registry/source/reflwrit.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -538,7 +538,7 @@ protected:
};
MethodEntry
::
MethodEntry
()
:
m_mode
(
RT
_MODE_
INVALID
)
:
m_mode
(
RT
MethodMode
::
INVALID
)
,
m_paramCount
(
0
)
,
m_params
(
NULL
)
,
m_excCount
(
0
)
...
...
registry/source/regimpl.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -294,19 +294,19 @@ void dumpType(typereg::Reader const & reader, OString const & indent) {
printf
(
"
\n
"
);
printf
(
"%s flags: "
,
indent
.
getStr
());
switch
(
reader
.
getMethodFlags
(
i
))
{
case
RT
_MODE_
ONEWAY
:
case
RT
MethodMode
:
:
ONEWAY
:
printf
(
"oneway"
);
break
;
case
RT
_MODE_
TWOWAY
:
case
RT
MethodMode
:
:
TWOWAY
:
printf
(
"synchronous"
);
break
;
case
RT
_MODE_
ATTRIBUTE_GET
:
case
RT
MethodMode
:
:
ATTRIBUTE_GET
:
printf
(
"attribute get"
);
break
;
case
RT
_MODE_
ATTRIBUTE_SET
:
case
RT
MethodMode
:
:
ATTRIBUTE_SET
:
printf
(
"attribute set"
);
break
;
...
...
registry/test/testregcpp.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -235,7 +235,7 @@ void test_coreReflection()
OUString
(
"DummyFile"
),
RTFieldAccess
::
CONST
,
aConst
);
writer
.
setMethodData
(
0
,
OUString
(
"methodA"
),
OUString
(
"double"
),
RT
_MODE_
TWOWAY
,
2
,
1
,
OUString
(
"double"
),
RT
MethodMode
::
TWOWAY
,
2
,
1
,
OUString
(
"Hallo ich bin die methodA"
));
writer
.
setParamData
(
0
,
0
,
OUString
(
"ModuleA/StructA"
),
OUString
(
"aStruct"
),
RT_PARAM_IN
);
...
...
registry/tools/regcompare.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -700,13 +700,13 @@ static char const * getMethodMode(RTMethodMode methodMode)
{
switch
(
methodMode
)
{
case
RT
_MODE_
ONEWAY
:
case
RT
MethodMode
:
:
ONEWAY
:
return
"ONEWAY"
;
case
RT
_MODE_
ONEWAY_CONST
:
case
RT
MethodMode
:
:
ONEWAY_CONST
:
return
"ONEWAY,CONST"
;
case
RT
_MODE_
TWOWAY
:
case
RT
MethodMode
:
:
TWOWAY
:
return
"NONE"
;
case
RT
_MODE_
TWOWAY_CONST
:
case
RT
MethodMode
:
:
TWOWAY_CONST
:
return
"CONST"
;
default:
return
"INVALID"
;
...
...
unoidl/source/legacyprovider.cxx
Dosyayı görüntüle @
e2931bce
...
...
@@ -258,7 +258,7 @@ rtl::Reference< Entity > readEntity(
for
(
sal_uInt16
k
=
0
;
k
!=
methodCount
;
++
k
)
{
if
(
reader
.
getMethodName
(
k
)
==
attrName
)
{
switch
(
reader
.
getMethodFlags
(
k
))
{
case
RT
_MODE_
ATTRIBUTE_GET
:
case
RT
MethodMode
:
:
ATTRIBUTE_GET
:
{
sal_uInt16
m
=
reader
.
getMethodExceptionCount
(
k
);
...
...
@@ -272,7 +272,7 @@ rtl::Reference< Entity > readEntity(
}
break
;
}
case
RT
_MODE_
ATTRIBUTE_SET
:
case
RT
MethodMode
:
:
ATTRIBUTE_SET
:
{
sal_uInt16
m
=
reader
.
getMethodExceptionCount
(
k
);
...
...
@@ -307,8 +307,8 @@ rtl::Reference< Entity > readEntity(
std
::
vector
<
InterfaceTypeEntity
::
Method
>
meths
;
for
(
sal_uInt16
j
=
0
;
j
!=
methodCount
;
++
j
)
{
RTMethodMode
flags
=
reader
.
getMethodFlags
(
j
);
if
(
flags
!=
RT
_MODE_
ATTRIBUTE_GET
&&
flags
!=
RT
_MODE_
ATTRIBUTE_SET
)
if
(
flags
!=
RT
MethodMode
::
ATTRIBUTE_GET
&&
flags
!=
RT
MethodMode
::
ATTRIBUTE_SET
)
{
std
::
vector
<
InterfaceTypeEntity
::
Method
::
Parameter
>
params
;
...
...
@@ -598,7 +598,7 @@ rtl::Reference< Entity > readEntity(
std
::
vector
<
SingleInterfaceBasedServiceEntity
::
Constructor
>
ctors
;
sal_uInt16
n
=
reader
.
getMethodCount
();
if
(
n
==
1
&&
reader
.
getMethodFlags
(
0
)
==
RT
_MODE_
TWOWAY
if
(
n
==
1
&&
reader
.
getMethodFlags
(
0
)
==
RT
MethodMode
::
TWOWAY
&&
reader
.
getMethodName
(
0
).
isEmpty
()
&&
reader
.
getMethodReturnTypeName
(
0
)
==
"void"
&&
reader
.
getMethodParameterCount
(
0
)
==
0
...
...
@@ -608,11 +608,11 @@ rtl::Reference< Entity > readEntity(
SingleInterfaceBasedServiceEntity
::
Constructor
());
}
else
{
for
(
sal_uInt16
j
=
0
;
j
!=
n
;
++
j
)
{
if
(
reader
.
getMethodFlags
(
j
)
!=
RT
_MODE_
TWOWAY
)
{
if
(
reader
.
getMethodFlags
(
j
)
!=
RT
MethodMode
::
TWOWAY
)
{
throw
FileFormatException
(
key
.
getRegistryName
(),
(
"legacy format: unexpected mode "
+
OUString
::
number
(
reader
.
getMethodFlags
(
j
))
+
OUString
::
number
(
static_cast
<
int
>
(
reader
.
getMethodFlags
(
j
)
))
+
" of constructor "
+
reader
.
getMethodName
(
j
)
+
" in service with key "
+
sub
.
getName
()));
}
...
...
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