[Libreoffice-commits] core.git: unoidl/source

Stephan Bergmann sbergman at redhat.com
Tue Sep 17 13:34:50 PDT 2013


 unoidl/source/sourceprovider-parser.y |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit ce09d2f07efdb9bfefe2c20515ebc3e1922a8c79
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Sep 17 22:34:23 2013 +0200

    && vs. & typos
    
    Change-Id: I7475114158d64b8dbe64cd9d1de3415454c762f4

diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y
index c2e1d7e..b093349 100644
--- a/unoidl/source/sourceprovider-parser.y
+++ b/unoidl/source/sourceprovider-parser.y
@@ -2502,31 +2502,31 @@ serviceProperty:
           YYERROR;
       }
       int att = 0;
-      if (($2 && unoidl::detail::FLAG_BOUND) != 0) {
+      if (($2 & unoidl::detail::FLAG_BOUND) != 0) {
           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;
       }
-      if (($2 && unoidl::detail::FLAG_MAYBEAMBIGUOUS) != 0) {
+      if (($2 & unoidl::detail::FLAG_MAYBEAMBIGUOUS) != 0) {
           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;
       }
-      if (($2 && unoidl::detail::FLAG_MAYBEVOID) != 0) {
+      if (($2 & unoidl::detail::FLAG_MAYBEVOID) != 0) {
           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;
       }
-      if (($2 && unoidl::detail::FLAG_READONLY) != 0) {
+      if (($2 & unoidl::detail::FLAG_READONLY) != 0) {
           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;
       }
-      if (($2 && unoidl::detail::FLAG_TRANSIENT) != 0) {
+      if (($2 & unoidl::detail::FLAG_TRANSIENT) != 0) {
           att |= unoidl::AccumulationBasedServiceEntity::Property::ATTRIBUTE_TRANSIENT;
       }
       switch (t.type) {


More information about the Libreoffice-commits mailing list