loplugin:unreffun (clang-cl)

Change-Id: I6e5789982789adc68a2e003aa6acff57639d5b5d
This commit is contained in:
Stephan Bergmann 2017-08-18 10:05:20 +02:00
parent 454c4380a4
commit e1a75dc228
2 changed files with 7 additions and 11 deletions

View file

@ -9,6 +9,8 @@
#include <cstring>
#include <cwchar>
#include <comphelper/windowsStart.hxx>
// Needed for CreateEnvironmentBlock
#include <userenv.h>
#pragma comment(lib, "userenv.lib")
@ -163,17 +165,6 @@ MakeCommandLine(int argc, wchar_t **argv)
return s;
}
/**
* Launch a child process with the specified arguments.
* @note argv[0] is ignored
* @note The form of this function that takes char **argv expects UTF-8
*/
BOOL
WinLaunchChild(const wchar_t *exePath,
int argc, wchar_t **argv,
HANDLE userToken = nullptr,
HANDLE *hProcess = nullptr);
BOOL
WinLaunchChild(const wchar_t *exePath,
int argc,

View file

@ -10,6 +10,11 @@
#include <windows.h>
#endif
/**
* Launch a child process with the specified arguments.
* @note argv[0] is ignored
* @note The form of this function that takes char **argv expects UTF-8
*/
BOOL
WinLaunchChild(const wchar_t *exePath, int argc,