summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-04 12:33:09 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-04 12:33:09 +0100
commit8f1fbd1dc8be2718c5ddd7fa8635338c1fe9a2d2 (patch)
tree1bdeffe777b1427ab663e8a721b79be7d154704c
parentd0fffd6c6dfd4241a73812c0c0730b325a9bb114 (diff)
downloadrockbox-8f1fbd1.tar.gz
rockbox-8f1fbd1.tar.bz2
rockbox-8f1fbd1.zip
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
-rw-r--r--utils/zenutils/source/update_patch/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/zenutils/source/update_patch/main.cpp b/utils/zenutils/source/update_patch/main.cpp
index 8e8d1ac03e..d23bbb2fd6 100644
--- a/utils/zenutils/source/update_patch/main.cpp
+++ b/utils/zenutils/source/update_patch/main.cpp
@@ -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();