Kaydet (Commit) ce09d2f0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

&& vs. & typos

Change-Id: I7475114158d64b8dbe64cd9d1de3415454c762f4
üst 19863a06
...@@ -2502,31 +2502,31 @@ serviceProperty: ...@@ -2502,31 +2502,31 @@ serviceProperty:
YYERROR; YYERROR;
} }
int att = 0; int att = 0;
if (($2 && unoidl::detail::FLAG_BOUND) != 0) { if (($2 & unoidl::detail::FLAG_BOUND) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_BOUND; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_BOUND;
} }
if (($2 && unoidl::detail::FLAG_CONSTRAINED) != 0) { if (($2 & unoidl::detail::FLAG_CONSTRAINED) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_CONSTRAINED; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_CONSTRAINED;
} }
if (($2 && unoidl::detail::FLAG_MAYBEAMBIGUOUS) != 0) { if (($2 & unoidl::detail::FLAG_MAYBEAMBIGUOUS) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_AMBIGUOUS; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_AMBIGUOUS;
} }
if (($2 && unoidl::detail::FLAG_MAYBEDEFAULT) != 0) { if (($2 & unoidl::detail::FLAG_MAYBEDEFAULT) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_DEFAULT; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_DEFAULT;
} }
if (($2 && unoidl::detail::FLAG_MAYBEVOID) != 0) { if (($2 & unoidl::detail::FLAG_MAYBEVOID) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_VOID; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_MAYBE_VOID;
} }
if (($2 && unoidl::detail::FLAG_OPTIONAL) != 0) { if (($2 & unoidl::detail::FLAG_OPTIONAL) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_OPTIONAL; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_OPTIONAL;
} }
if (($2 && unoidl::detail::FLAG_READONLY) != 0) { if (($2 & unoidl::detail::FLAG_READONLY) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_READ_ONLY; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_READ_ONLY;
} }
if (($2 && unoidl::detail::FLAG_REMOVABLE) != 0) { if (($2 & unoidl::detail::FLAG_REMOVABLE) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_REMOVABLE; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_REMOVABLE;
} }
if (($2 && unoidl::detail::FLAG_TRANSIENT) != 0) { if (($2 & unoidl::detail::FLAG_TRANSIENT) != 0) {
att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_TRANSIENT; att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_TRANSIENT;
} }
switch (t.type) { switch (t.type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment