Changeset 376 for branches


Ignore:
Timestamp:
02/03/14 17:30:02 (6 years ago)
Author:
jls17
Message:
  • cleaned up the setfields methods a little bit
Location:
branches/work_304/doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/doc/DocAlActionStruct.cpp

    r375 r376  
    252252        try 
    253253        { 
    254                 //Find the seconds form in the set fields assignemt 
    255                 //Possible values: "", "*", "schemaName"  
    256                 stringstream secondaryFormRaw, secondaryFormDisplay, serverRaw, qualification; 
    257                 secondaryFormRaw.str(""); 
    258                 secondaryFormDisplay.str(""); 
    259                 serverRaw.str(""); 
    260                 qualification.str(""); 
    261  
    262                 CDocActionSetFieldsHelper *alHelper = new CDocActionSetFieldsHelper(*arIn, *obj, schemaName, action, structItemType, ifElse, nAction, rootLevel); 
    263                 alHelper->ShowActionWithServerName(true); 
    264                 alHelper->SetFieldsGetSecondaryForm(strm); 
    265                 delete alHelper; 
     254                CDocActionSetFieldsHelper setFieldHelper(*arIn, *obj, schemaName, action, structItemType, ifElse, nAction, rootLevel); 
     255                setFieldHelper.ShowActionWithServerName(true); 
     256                setFieldHelper.SetFieldsGetSecondaryForm(strm); 
    266257        } 
    267258        catch(exception& e) 
  • branches/work_304/doc/DocFilterActionStruct.cpp

    r375 r376  
    346346        try 
    347347        { 
    348                 //Find the secondary form in the set fields assignemt 
    349                 //Possible values: "", "*", "schemaName"  
    350                 stringstream secondaryFormRaw, secondaryFormDisplay, serverRaw, qualification; 
    351  
    352                 CDocActionSetFieldsHelper* filterHelper = new CDocActionSetFieldsHelper(*arIn, *obj, schemaName, action, structItemType, ifElse, nAction, rootLevel); 
    353                 filterHelper->SetFieldsGetSecondaryForm(strm); 
    354                 delete filterHelper; 
     348                CDocActionSetFieldsHelper filterHelper(*arIn, *obj, schemaName, action, structItemType, ifElse, nAction, rootLevel); 
     349                filterHelper.SetFieldsGetSecondaryForm(strm); 
    355350        } 
    356351        catch(exception& e) 
Note: See TracChangeset for help on using the changeset viewer.