IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39175


Ignore:
Timestamp:
Nov 20, 2015, 3:15:38 PM (10 years ago)
Author:
eugene
Message:

whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtools.h

    r30907 r39175  
    206206
    207207#define PXOPT_COPY_PRIMITIVE(from, to, type, suffix, oldname, newname, newcomment) \
    208 { \
    209     psMetadataItem *item = psMetadataLookup(from, oldname); \
    210     if (!item) { \
     208    {                                                                   \
     209      psMetadataItem *item = psMetadataLookup(from, oldname);           \
     210      if (!item) {                                                      \
    211211        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for %s", oldname); \
    212         return false; \
    213     } \
    214     psAssert(item->comment, "metadata item comment should be defined"); \
    215 \
    216     if (psStrcasestr(item->comment, "(found)")) { \
     212        return false;                                                   \
     213      }                                                                 \
     214      psAssert(item->comment, "metadata item comment should be defined"); \
     215                                                                        \
     216      if (psStrcasestr(item->comment, "(found)")) {                     \
    217217        if (!psMetadataAdd##suffix(to, PS_LIST_TAIL, newname, PS_META_DUPLICATE_OK, newcomment, item->data.suffix)) { \
    218             psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \
    219             psFree(to); \
    220             return false; \
    221         } \
    222     } \
    223 }
     218          psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \
     219          psFree(to);                                                   \
     220          return false;                                                 \
     221        }                                                               \
     222      }                                                                 \
     223    }
    224224
    225225#define PXOPT_COPY_V(from, to, type, suffix, oldname, newname, comment) \
Note: See TracChangeset for help on using the changeset viewer.