Matteo Varalta
2019-04-29 576bbc5eaff2908bab0cc018e1ae00e132c605f2
Simple append multiple sections into license file
2个文件已修改
5 ■■■■ 已修改文件
src/library/ini/SimpleIni.h 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tools/license-generator/license-generator.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/ini/SimpleIni.h
@@ -2488,6 +2488,9 @@
        bNeedNewLine = true;
    }
    // Append new empty line
    a_oOutput.Write(SI_NEWLINE_A);
    return SI_OK;
}
src/tools/license-generator/license-generator.cpp
@@ -174,7 +174,7 @@
    if (vm.count("output")) {
        const std::string fname = vm["output"].as<string>();
        fstream ofstream(fname, std::ios::out | std::ios::trunc);
        fstream ofstream(fname, std::ios::out | std::ios::app);
        if (!ofstream.is_open()) {
            cerr << "can't open file [" << fname << "] for output." << endl
                    << " error: " << strerror( errno);