DolphinTool: Less string copies

This commit is contained in:
get 2023-06-16 19:33:38 -05:00
parent 5029924ba1
commit e67c196d2a
3 changed files with 18 additions and 23 deletions

View file

@ -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;