Ignore:
Timestamp:
Mar 26, 2010, 10:19:31 PM (12 years ago)
Author:
dmik
Message:

branches/kmk: Implemented LuPopplerDocument::getInputFields() and LuPopplerInputField?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kmk/Lucide/plugins/ludoc/ludoc.cpp

    r319 r321  
    476476}
    477477
     478
     479SOM_Scope void  SOMLINK freeInputFields(Environment *ev, LuDocument_LuInputFieldSequence* aInputFields)
     480{
     481    if ( aInputFields != NULL ) {
     482        if ( ( ( aInputFields->_maximum != 0 ) ||
     483               ( aInputFields->_length != 0 ) ) &&
     484                   ( aInputFields->_buffer != NULL ) ) {
     485            for ( size_t i = 0; i < aInputFields->_length; ++i )
     486                delete aInputFields->_buffer[i];
     487            SOMFree( aInputFields->_buffer );
     488        }
     489        SOMFree( aInputFields );
     490    }
     491}
     492
     493
    478494SOM_Scope void SOMLINK somDefaultInit(LuDocument *somSelf, som3InitCtrl* ctrl)
    479495{
Note: See TracChangeset for help on using the changeset viewer.