From: José Fonseca Date: Fri, 2 Mar 2012 10:07:38 +0000 (+0000) Subject: Don't compute wrapper filename twice. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=7f456dbc6649799d862fbe34169880925529d8dc;p=apitrace Don't compute wrapper filename twice. --- diff --git a/common/trace_tools_trace.cpp b/common/trace_tools_trace.cpp index 56258e5..fe6b3e2 100644 --- a/common/trace_tools_trace.cpp +++ b/common/trace_tools_trace.cpp @@ -143,12 +143,9 @@ traceProgram(API api, #if defined(_WIN32) /* On Windows copy the wrapper to the program directory. */ - os::String wrapperName (wrapperPath); - wrapperName.trimDirectory(); - os::String tmpWrapper(argv[0]); tmpWrapper.trimFilename(); - tmpWrapper.join(wrapperName); + tmpWrapper.join(wrapperFilename); if (verbose) { std::cerr << wrapperPath << " -> " << tmpWrapper << "\n";