mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 16:32:55 +00:00
DolphinTool: Less string copies
This commit is contained in:
parent
5029924ba1
commit
e67c196d2a
3 changed files with 18 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue