- Timestamp:
- May 31, 2015, 11:54:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/commandline/CommandLineParser.cc
r10509 r10520 85 85 CommandLineParser::~CommandLineParser() 86 86 { 87 CommandLineParser::destroyAllArguments();88 87 } 89 88 … … 96 95 static CommandLineParser instance; 97 96 return instance; 98 }99 100 /**101 @brief102 Destroys all command line arguments. This should be called at the end103 of main. Do not use before that.104 */105 void CommandLineParser::destroyAllArguments()106 {107 for (std::map<std::string, CommandLineArgument*>::const_iterator it = _getInstance().cmdLineArgs_.begin();108 it != _getInstance().cmdLineArgs_.end(); ++it)109 delete it->second;110 _getInstance().cmdLineArgs_.clear();111 97 } 112 98
Note: See TracChangeset
for help on using the changeset viewer.