Jan Willamowius
2019-04-22 10d16f7b6d963c83fa6a0b32a757c16c70623689
pass by reference as performance optimization
2个文件已修改
4 ■■■■ 已修改文件
src/tools/license-generator/license-generator.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tools/license-generator/license-generator.h 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tools/license-generator/license-generator.cpp
@@ -71,7 +71,7 @@
}
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")) {
src/tools/license-generator/license-generator.h
@@ -23,7 +23,7 @@
    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);