forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
26bc6c4d39
commit
6215df2bc9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user