Minor simplification

Change-Id: I031409043f12bdfe4b8c838d74db8a60576fd507
This commit is contained in:
Stephan Bergmann
2013-11-28 08:26:02 +01:00
parent 492ec288f7
commit 70fe99d019
+8 -12
View File
@@ -230,20 +230,16 @@ void Reader::readMessage(Unmarshal & unmarshal) {
*static_cast< uno_Interface ** >(
unmarshal.readValue(t).getValue(t)));
}
bool synchronous;
if (memberTd.get()->eTypeClass == typelib_TypeClass_INTERFACE_METHOD &&
bool oneWay =
memberTd.get()->eTypeClass == typelib_TypeClass_INTERFACE_METHOD &&
(reinterpret_cast< typelib_InterfaceMethodTypeDescription * >(
memberTd.get())->
bOneWay))
{
synchronous = forceSynchronous;
} else {
SAL_INFO_IF(
forceSynchronous, "binaryurp",
("superfluous MUSTREPLY/SYNCHRONOUS ignored in request message with"
" non-oneway function ID"));
synchronous = true;
}
bOneWay);
SAL_INFO_IF(
!oneWay && forceSynchronous, "binaryurp",
("superfluous MUSTREPLY/SYNCHRONOUS ignored in request message with"
" non-oneway function ID"));
bool synchronous = !oneWay || forceSynchronous;
bool setter = false;
std::vector< BinaryAny > inArgs;
switch (memberTd.get()->eTypeClass) {