diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-15 15:46:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-15 15:46:35 +0100 |
| commit | a39d11c47ac98b08ed40963c2b334caf4764577c (patch) | |
| tree | 3c11d7b70ab3745d588293ed6b9fcbe8f6bcfd25 /Source/Core/DolphinTool/ConvertCommand.cpp | |
| parent | c883ec1c53f8ee32f5f6305a3cdeeb4c02dc1c22 (diff) | |
| parent | f711b8dbaecb7fbf0d4c82a098fc98eae148b166 (diff) | |
Merge pull request #10501 from jordan-woyak/dolphin-tool-no-need-for-a-unique-ptr
DolphinTool: Kill an unnecessary unique_ptr.
Diffstat (limited to 'Source/Core/DolphinTool/ConvertCommand.cpp')
| -rw-r--r-- | Source/Core/DolphinTool/ConvertCommand.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Core/DolphinTool/ConvertCommand.cpp b/Source/Core/DolphinTool/ConvertCommand.cpp index d98adcb0b8..96e645ed7c 100644 --- a/Source/Core/DolphinTool/ConvertCommand.cpp +++ b/Source/Core/DolphinTool/ConvertCommand.cpp @@ -10,57 +10,57 @@ namespace DolphinTool { int ConvertCommand::Main(const std::vector<std::string>& args) { - auto parser = std::make_unique<optparse::OptionParser>(); + optparse::OptionParser parser; - parser->usage("usage: convert [options]... [FILE]..."); + parser.usage("usage: convert [options]... [FILE]..."); - parser->add_option("-u", "--user") + parser.add_option("-u", "--user") .action("store") .help("User folder path, required for temporary processing files." "Will be automatically created if this option is not set."); - parser->add_option("-i", "--input") + parser.add_option("-i", "--input") .type("string") .action("store") .help("Path to disc image FILE.") .metavar("FILE"); - parser->add_option("-o", "--output") + parser.add_option("-o", "--output") .type("string") .action("store") .help("Path to the destination FILE.") .metavar("FILE"); - parser->add_option("-f", "--format") + parser.add_option("-f", "--format") .type("string") .action("store") .help("Container format to use. Default is RVZ. [%choices]") .choices({"iso", "gcz", "wia", "rvz"}); - parser->add_option("-s", "--scrub") + parser.add_option("-s", "--scrub") .action("store_true") .help("Scrub junk data as part of conversion."); - parser->add_option("-b", "--block_size") + parser.add_option("-b", "--block_size") .type("int") .action("store") .help("Block size for GCZ/WIA/RVZ formats, as an integer. Suggested value for RVZ: 131072 " "(128 KiB)"); - parser->add_option("-c", "--compression") + parser.add_option("-c", "--compression") .type("string") .action("store") .help("Compression method to use when converting to WIA/RVZ. Suggested value for RVZ: zstd " "[%choices]") .choices({"none", "zstd", "bzip", "lzma", "lzma2"}); - parser->add_option("-l", "--compression_level") + parser.add_option("-l", "--compression_level") .type("int") .action("store") .help("Level of compression for the selected method. Ignored if 'none'. Suggested value for " "zstd: 5"); - const optparse::Values& options = parser->parse_args(args); + const optparse::Values& options = parser.parse_args(args); // Initialize the dolphin user directory, required for temporary processing files // If this is not set, destructive file operations could occur due to path confusion |
