summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-12 16:51:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-17 20:48:39 +0200
commitfe45f18fa507dfcd2ea87b8b1969e730a6357d16 (patch)
treebb739bfa96da1a47a1f5d34234cd927214c5b50a /sal
parent4d913a2f47a062eca5b46bd0e0a594f7aef656e7 (diff)
BOOL -> bool
Change-Id: Ie1ee8b93753e03326d2a121dcd18a1b6a7038ce3 Reviewed-on: https://gerrit.libreoffice.org/37722 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/file_url.cxx14
-rw-r--r--sal/osl/w32/file_url.hxx2
2 files changed, 8 insertions, 8 deletions
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 3eda74d30c30..625dfd274add 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -369,7 +369,7 @@ static DWORD GetCaseCorrectPathNameEx(
LPWSTR lpszPath, // path buffer to convert
DWORD cchBuffer, // size of path buffer
DWORD nSkipLevels,
- BOOL bCheckExistence )
+ bool bCheckExistence )
{
::osl::LongPathBuffer< WCHAR > szFile( MAX_PATH + 1 );
sal_Int32 nRemoved = PathRemoveFileSpec( lpszPath, szFile, MAX_PATH + 1 );
@@ -383,24 +383,24 @@ static DWORD GetCaseCorrectPathNameEx(
if ( nRemoved )
{
- BOOL bSkipThis = FALSE;
+ bool bSkipThis = false;
if ( 0 == _tcscmp( szFile, TEXT("..") ) )
{
- bSkipThis = TRUE;
+ bSkipThis = true;
nSkipLevels += 1;
}
else if ( 0 == _tcscmp( szFile, TEXT(".") ) )
{
- bSkipThis = TRUE;
+ bSkipThis = true;
}
else if ( nSkipLevels )
{
- bSkipThis = TRUE;
+ bSkipThis = true;
nSkipLevels--;
}
else
- bSkipThis = FALSE;
+ bSkipThis = false;
if ( !GetCaseCorrectPathNameEx( lpszPath, cchBuffer, nSkipLevels, bCheckExistence ) )
return 0;
@@ -453,7 +453,7 @@ DWORD GetCaseCorrectPathName(
LPCWSTR lpszShortPath, // file name
LPWSTR lpszLongPath, // path buffer
DWORD cchBuffer, // size of path buffer
- BOOL bCheckExistence
+ bool bCheckExistence
)
{
/* Special handling for "\\.\" as system root */
diff --git a/sal/osl/w32/file_url.hxx b/sal/osl/w32/file_url.hxx
index 7a3dc5c074b6..d90d05840f50 100644
--- a/sal/osl/w32/file_url.hxx
+++ b/sal/osl/w32/file_url.hxx
@@ -62,7 +62,7 @@ DWORD GetCaseCorrectPathName (
LPCWSTR lpszShortPath, // file name
LPWSTR lpszLongPath, // path buffer
DWORD cchBuffer, // size of path buffer
- BOOL bCheckExistence
+ bool bCheckExistence
);
oslFileError osl_getSystemPathFromFileURL_ (