summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-19 15:15:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-19 21:34:30 +0100
commit5a11fe87a6f1507149a0965aa740dcdf4ccef3c3 (patch)
tree3f3e788a0e54c94e980bd61e4466d4d6e2c34415 /comphelper
parent77d301f5e40e4f0fb4a127b8b6361a0fb1b1dbd9 (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 'comphelper')
-rw-r--r--comphelper/source/windows/windows_process.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx
index f334cfc4ffbe..7588bae027e5 100644
--- a/comphelper/source/windows/windows_process.cxx
+++ b/comphelper/source/windows/windows_process.cxx
@@ -22,9 +22,9 @@
static int ArgStrLen(const wchar_t *s)
{
int i = wcslen(s);
- BOOL hasDoubleQuote = wcschr(s, L'"') != nullptr;
+ bool hasDoubleQuote = wcschr(s, L'"') != nullptr;
// Only add doublequotes if the string contains a space or a tab
- BOOL addDoubleQuotes = wcspbrk(s, L" \t") != nullptr;
+ bool addDoubleQuotes = wcspbrk(s, L" \t") != nullptr;
if (addDoubleQuotes)
{
@@ -69,9 +69,9 @@ static int ArgStrLen(const wchar_t *s)
*/
static wchar_t* ArgToString(wchar_t *d, const wchar_t *s)
{
- BOOL hasDoubleQuote = wcschr(s, L'"') != nullptr;
+ bool hasDoubleQuote = wcschr(s, L'"') != nullptr;
// Only add doublequotes if the string contains a space or a tab
- BOOL addDoubleQuotes = wcspbrk(s, L" \t") != nullptr;
+ bool addDoubleQuotes = wcspbrk(s, L" \t") != nullptr;
if (addDoubleQuotes)
{
@@ -171,7 +171,7 @@ WinLaunchChild(const wchar_t *exePath,
HANDLE *hProcess)
{
wchar_t *cl;
- BOOL ok;
+ bool ok;
cl = MakeCommandLine(argc, argv);
if (!cl)