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

Changeset 4234


Ignore:
Timestamp:
Aug 12, 2009, 2:45:10 PM (8 years ago)
Author:
bless
Message:
  • made the is_consistent() mehtod static, because it doesn't require any member variables
Location:
ntlp/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ntlp/trunk/src/capability.cpp

    r4108 r4234  
    500500}
    501501
    502 // returns true, if the protocol is defined as "reliable"
     502
     503/**
     504 * check whether we know the current protocol as being reliable
     505 * @return true, if the protocol is defined as being "reliable"
     506 **/
    503507bool
    504508capability::is_reliable(const appladdress* addr) const
     
    516520}
    517521
    518 // compares a stack profile and stack configuration data
    519 // and checks for consistency
     522/** compares a stack profile and stack configuration data
     523 *  and checks for consistency, e.g., whether a stack profile
     524 *  referenced within a stack configuration data section is
     525 *  really available
     526 */
    520527bool
    521 capability::is_consistent(const stackprop* sp, const stack_conf_data* sc) const
     528capability::is_consistent(const stackprop* sp, const stack_conf_data* sc)
    522529{
    523530    if ( sp == NULL || sc == NULL )
  • ntlp/trunk/src/capability.h

    r4108 r4234  
    7474  bool accept_proposal(const stackprop* sp, bool secure = false) const;
    7575 
    76   bool is_consistent(const stackprop* sp, const stack_conf_data* sc) const;
     76  static bool is_consistent(const stackprop* sp, const stack_conf_data* sc);
    7777 
    7878private:
Note: See TracChangeset for help on using the changeset viewer.