Index: trunk/glueforge/templates/psdb/popobject.tt
===================================================================
--- trunk/glueforge/templates/psdb/popobject.tt	(revision 4265)
+++ trunk/glueforge/templates/psdb/popobject.tt	(revision 4326)
@@ -3,6 +3,4 @@
 [% object_name %] *[% namespace %]PopObject(psDB *dbh)
 {
-    bool            status;
-    [% indented(object_name, "*object") %];
 [% FOREACH item = columns -%]
 [% IF item.type == "STR" -%]
@@ -13,5 +11,5 @@
 [% END -%]
 
-    status = [% namespace %]Pop(dbh, 
+    if (![% namespace %]Pop(dbh, 
 [%- SET i = 0 -%]
 [% FOREACH item = columns -%]
@@ -22,11 +20,10 @@
 &[% item.name -%]
 [% END -%]
-[% END %]);
-    if (!status) {
+[% END %])) {
         // psError(); something bad happened
         return NULL;
     }
 
-    object = [% object_name %]Alloc(
+    return [% object_name %]Alloc(
 [%- SET i = 0 -%]
 [% FOREACH item = columns -%]
@@ -34,5 +31,3 @@
 [% item.name %]
 [%- END -%]);
-
-    return object;
 }
