Remove trailing whitespace (#3668)

This commit is contained in:
John Vandenberg
2022-07-07 17:18:20 +08:00
committed by GitHub
parent 0af9524e16
commit 0e6e16645c
1330 changed files with 23570 additions and 23571 deletions

View File

@@ -28,29 +28,29 @@ int main(int argc, char** argv)
<< " read <input_file>, base64-encode it and write the result to <output_file>" << std::endl;
return 1;
}
std::ifstream istr(argv[1], std::ios::binary);
if (!istr)
{
std::cerr << "cannot open input file: " << argv[1] << std::endl;
return 2;
}
std::ofstream ostr(argv[2]);
if (!ostr)
{
std::cerr << "cannot open output file: " << argv[2] << std::endl;
return 3;
}
Base64Encoder encoder(ostr);
StreamCopier::copyStream(istr, encoder);
if (!ostr)
{
std::cerr << "error writing output file: " << argv[2] << std::endl;
return 4;
}
return 0;
}