mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
DolphinTool: Less string copies
This commit is contained in:
@ -43,7 +43,7 @@ int HeaderCommand(const std::vector<std::string>& args)
|
||||
const optparse::Values& options = parser.parse_args(args);
|
||||
|
||||
// Validate options
|
||||
const std::string input_file_path = static_cast<const char*>(options.get("input"));
|
||||
const std::string& input_file_path = options["input"];
|
||||
if (input_file_path.empty())
|
||||
{
|
||||
std::cerr << "Error: No input set" << std::endl;
|
||||
|
Reference in New Issue
Block a user