IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2005, 2:54:17 PM (21 years ago)
Author:
jhoblitt
Message:

factor out intermediate value variables where it doesn't impact readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/popobject.tt

    r4265 r4326  
    33[% object_name %] *[% namespace %]PopObject(psDB *dbh)
    44{
    5     bool            status;
    6     [% indented(object_name, "*object") %];
    75[% FOREACH item = columns -%]
    86[% IF item.type == "STR" -%]
     
    1311[% END -%]
    1412
    15     status = [% namespace %]Pop(dbh,
     13    if (![% namespace %]Pop(dbh,
    1614[%- SET i = 0 -%]
    1715[% FOREACH item = columns -%]
     
    2220&[% item.name -%]
    2321[% END -%]
    24 [% END %]);
    25     if (!status) {
     22[% END %])) {
    2623        // psError(); something bad happened
    2724        return NULL;
    2825    }
    2926
    30     object = [% object_name %]Alloc(
     27    return [% object_name %]Alloc(
    3128[%- SET i = 0 -%]
    3229[% FOREACH item = columns -%]
     
    3431[% item.name %]
    3532[%- END -%]);
    36 
    37     return object;
    3833}
Note: See TracChangeset for help on using the changeset viewer.