NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4097


Ignore:
Timestamp:
Jul 14, 2009, 4:16:21 PM (8 years ago)
Author:
bless
Message:
  • fix for ticket #120, add_protoption() now modified to set the correct index
Location:
ntlp/branches/20080820-configpar/src/pdu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ntlp/branches/20080820-configpar/src/pdu/stackconf.cpp

    r2926 r4097  
    332332} // end input
    333333
     334void
     335stack_conf_data::add_protoption(const ma_protocol_option& protopt)
     336{
     337        ma_prot_options.push_back(protopt);
     338        // fix index
     339        ma_prot_options[ma_prot_options.size()-1].set_profile(ma_prot_options.size());
     340}
    334341
    335342//@}
  • ntlp/branches/20080820-configpar/src/pdu/stackconf.h

    r2748 r4097  
    153153
    154154  /// add protocol option data
    155   void add_protoption(ma_protocol_option protopt) { ma_prot_options.push_back(protopt); }
     155  void add_protoption(const ma_protocol_option& protopt);
    156156
    157157  /// clear prot options
Note: See TracChangeset for help on using the changeset viewer.