ファイルを複数入力すると出力拡張子が適用されていなかったバグを修正

This commit is contained in:
lltcggie 2016-03-20 03:09:10 +09:00
parent 09a5ed9873
commit 3da98bcfc3

View File

@ -619,7 +619,7 @@ private:
const boost::filesystem::path input_path(boost::filesystem::absolute(input)); const boost::filesystem::path input_path(boost::filesystem::absolute(input));
const boost::filesystem::path output_path(boost::filesystem::absolute(output_str)); const boost::filesystem::path output_path(boost::filesystem::absolute(output_str));
const auto filenameFunc = [&output_path](const tstring &path) -> std::wstring const auto outilenameFunc = [&output_path](const tstring &path) -> std::wstring
{ {
const auto out = output_path / path; const auto out = output_path / path;
return out.wstring(); return out.wstring();
@ -691,8 +691,10 @@ private:
} }
} }
else else
file_paths.emplace_back(input_path.wstring(), filenameFunc(input_path.filename().wstring())); {
const auto out = output_path / (input_path.stem().wstring() + outputExt);
file_paths.emplace_back(input_path.wstring(), out.wstring());
}
}; };
{ {