diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-19 15:15:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-19 21:34:30 +0100 |
commit | 5a11fe87a6f1507149a0965aa740dcdf4ccef3c3 (patch) | |
tree | 3f3e788a0e54c94e980bd61e4466d4d6e2c34415 /desktop/win32 | |
parent | 77d301f5e40e4f0fb4a127b8b6361a0fb1b1dbd9 (diff) |
loplugin:fakebool (clang-cl)
...plus follow-up loplugin:implicitboolconversion and loplugin:redundantcast
Change-Id: I9fc9c5cb46fbb50da87ff80af64cb0dfda3e5f90
Reviewed-on: https://gerrit.libreoffice.org/83207
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/win32')
-rw-r--r-- | desktop/win32/source/QuickStart/QuickStart.cxx | 2 | ||||
-rw-r--r-- | desktop/win32/source/applauncher/launcher.cxx | 2 | ||||
-rw-r--r-- | desktop/win32/source/guiloader/genericloader.cxx | 2 | ||||
-rw-r--r-- | desktop/win32/source/guistdio/guistdio.inc | 2 | ||||
-rw-r--r-- | desktop/win32/source/loader.cxx | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/desktop/win32/source/QuickStart/QuickStart.cxx b/desktop/win32/source/QuickStart/QuickStart.cxx index 0db45b41a125..3277a6abfe5a 100644 --- a/desktop/win32/source/QuickStart/QuickStart.cxx +++ b/desktop/win32/source/QuickStart/QuickStart.cxx @@ -64,7 +64,7 @@ static bool launchSoffice( ) aStartupInfo.cb = sizeof(aStartupInfo); aStartupInfo.wShowWindow = SW_SHOW; PROCESS_INFORMATION aProcessInfo; - BOOL bSuccess = CreateProcessW(filename, imagename, nullptr, nullptr, TRUE, 0, nullptr, nullptr, &aStartupInfo, &aProcessInfo); + bool bSuccess = CreateProcessW(filename, imagename, nullptr, nullptr, TRUE, 0, nullptr, nullptr, &aStartupInfo, &aProcessInfo); if ( !bSuccess ) return false; diff --git a/desktop/win32/source/applauncher/launcher.cxx b/desktop/win32/source/applauncher/launcher.cxx index 987b3e2985e1..bf80dba2cc5a 100644 --- a/desktop/win32/source/applauncher/launcher.cxx +++ b/desktop/win32/source/applauncher/launcher.cxx @@ -54,7 +54,7 @@ extern "C" int APIENTRY wWinMain( HINSTANCE, HINSTANCE, LPWSTR, int ) PROCESS_INFORMATION aProcessInfo; - BOOL fSuccess = CreateProcessW( + bool fSuccess = CreateProcessW( szApplicationName, lpCommandLine, nullptr, diff --git a/desktop/win32/source/guiloader/genericloader.cxx b/desktop/win32/source/guiloader/genericloader.cxx index 193e74bd11b0..be83ebe8effc 100644 --- a/desktop/win32/source/guiloader/genericloader.cxx +++ b/desktop/win32/source/guiloader/genericloader.cxx @@ -77,7 +77,7 @@ static int GenericMain() } desktop_win32::commandLineAppend(p, MY_STRING(L"\"")); - BOOL fSuccess = CreateProcessW( + bool fSuccess = CreateProcessW( szTargetFileName, cl2, nullptr, diff --git a/desktop/win32/source/guistdio/guistdio.inc b/desktop/win32/source/guistdio/guistdio.inc index 85822a817d63..9dd85d90f44b 100644 --- a/desktop/win32/source/guistdio/guistdio.inc +++ b/desktop/win32/source/guistdio/guistdio.inc @@ -347,7 +347,7 @@ int wmain( int, wchar_t** ) // Create process with same command line, environment and stdio handles which // are directed to the created pipes - BOOL fSuccess = CreateProcessW( + bool fSuccess = CreateProcessW( szTargetFileName, GetCommandLineW(), nullptr, diff --git a/desktop/win32/source/loader.cxx b/desktop/win32/source/loader.cxx index 40cef9e3fd4f..a64af994e268 100644 --- a/desktop/win32/source/loader.cxx +++ b/desktop/win32/source/loader.cxx @@ -153,7 +153,7 @@ int officeloader_impl(bool bAllowConsole) DWORD dwExitCode = DWORD(-1); - BOOL fSuccess = FALSE; + bool fSuccess = FALSE; LPWSTR lpCommandLine = nullptr; bool bFirst = true; WCHAR cwd[MAX_PATH]; @@ -251,7 +251,7 @@ int officeloader_impl(bool bAllowConsole) bFirst = false; WCHAR szParentProcessId[64]; // This is more than large enough for a 128 bit decimal value - BOOL bHeadlessMode(FALSE); + bool bHeadlessMode(FALSE); { // Check command line arguments for "--headless" parameter. We only |