From 6215df2bc9085230e855f9c45bb0728d2dd0f44a Mon Sep 17 00:00:00 2001 From: Joerg Bornemann <joerg.bornemann@nokia.com> Date: Mon, 15 Aug 2011 11:44:08 +0200 Subject: [PATCH] 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> --- src/libs/utils/process_ctrlc_stub.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libs/utils/process_ctrlc_stub.cpp b/src/libs/utils/process_ctrlc_stub.cpp index aca350a7778..8a768cf7679 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) -- GitLab