mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
Remove unneeded std::string .c_str() call
cppcheck reported: [utils/zenutils/source/update_patch/main.cpp:105]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. Change-Id: Ied9de135e693af22e1fdc3aa3b67d14b7d2c21e6
This commit is contained in:
parent
d0fffd6c6d
commit
8f1fbd1dc8
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ int process_arguments(int argc, char* argv[])
|
|||
if (verbose)
|
||||
std::cout << "[*] Parsing options file..." << std::endl;
|
||||
|
||||
GetPot optfile(options_name(updatername.c_str()).c_str());
|
||||
GetPot optfile(options_name(updatername).c_str());
|
||||
if (verbose)
|
||||
optfile.print();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue