pass by reference as performance optimization
| | |
| | | } |
| | | |
| | | vector<FullLicenseInfo> LicenseGenerator::parseLicenseInfo( |
| | | po::variables_map vm) { |
| | | const po::variables_map& vm) { |
| | | string begin_date = FullLicenseInfo::UNUSED_TIME; |
| | | string end_date = FullLicenseInfo::UNUSED_TIME; |
| | | if (vm.count("expire_date")) { |
| | |
| | | LicenseGenerator(); |
| | | static void printHelp(const char* prog_name, const po::options_description& options); |
| | | static po::options_description configureProgramOptions(); |
| | | static vector<FullLicenseInfo> parseLicenseInfo(po::variables_map vm); |
| | | static vector<FullLicenseInfo> parseLicenseInfo(const po::variables_map& vm); |
| | | static void generateAndOutputLicenses(const po::variables_map& vm, |
| | | ostream& outputFile); |
| | | static string normalize_date(const std::string& s); |