diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-08-15 11:44:08 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-08-15 12:27:48 +0200 |
commit | 6215df2bc9085230e855f9c45bb0728d2dd0f44a (patch) | |
tree | 41de2539cd7620caad13c62a6db4020241468518 /src/libs/utils/process_ctrlc_stub.cpp | |
parent | 26bc6c4d392bd26a97700647d91c9231891e3aeb (diff) |
remove superfluous move from process_ctrlc_stub
Change-Id: Id4458dcf29893a007ee85c0ce85a500617f02b6d
Reviewed-on: http://codereview.qt.nokia.com/2946
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/libs/utils/process_ctrlc_stub.cpp')
-rw-r--r-- | src/libs/utils/process_ctrlc_stub.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/utils/process_ctrlc_stub.cpp b/src/libs/utils/process_ctrlc_stub.cpp index aca350a777..8a768cf767 100644 --- a/src/libs/utils/process_ctrlc_stub.cpp +++ b/src/libs/utils/process_ctrlc_stub.cpp @@ -95,12 +95,7 @@ int main(int argc, char **) return 1; if (!findFirst(strCommandLine, strCommandLineLength, pos, L" \t", pos)) return 1; -#ifdef Q_CC_MSVC - wmemmove_s(strCommandLine, strCommandLineLength, strCommandLine + pos + 1, strCommandLineLength - pos); -#else - wmemmove(strCommandLine, strCommandLine + pos + 1, strCommandLineLength - pos); -#endif - bool bSuccess = startProcess(strCommandLine); + bool bSuccess = startProcess(strCommandLine + pos + 1); free(strCommandLine); if (!bSuccess) |